[PTRun]Settings for result order tuning (#18978)

* Change to allow new settings for results tuning.

* Change to allow new settings for results tuning.

* Added WeightBoost

* Fixed null-ref crash in QueryResults

* Change based on stefansjfw review. Remove PowerLauncher_PluginWeightBoost.Content

* Fixed another of my dumb null-refs...

* Updated some text

* Moved global sort order and set enable/disabled as needed.

* Fixed enabled-state of "Global sort order score modifier" setting.
This commit is contained in:
Jeff Lord
2022-07-04 10:12:56 -04:00
committed by GitHub
parent 0c238a8eea
commit 0da616f917
19 changed files with 379 additions and 31 deletions

View File

@@ -56,6 +56,8 @@ namespace Wox.Plugin
public string ActionKeyword { get; set; }
public int WeightBoost { get; set; }
public bool IsGlobal { get; set; }
public string IcoPathDark { get; set; }

View File

@@ -79,6 +79,8 @@ namespace Wox.Plugin
}
Metadata.ActionKeyword = setting.ActionKeyword;
Metadata.WeightBoost = setting.WeightBoost;
Metadata.IsGlobal = setting.IsGlobal;
(Plugin as ISettingProvider)?.UpdateSettings(setting);

View File

@@ -103,6 +103,8 @@ namespace Wox.Plugin
/// </summary>
public const string GlobalPluginWildcardSign = "*";
public int WeightBoost { get; set; }
public string ActionKeyword { get; set; }
/// <summary>

View File

@@ -21,6 +21,8 @@ namespace Wox.Plugin
private string _pluginDirectory;
private string _icoPath;
public PluginMetadata Metadata { get; set; }
public string Title
{
get
@@ -100,6 +102,10 @@ namespace Wox.Plugin
public int Score { get; set; }
public int SelectedCount { get; set; }
public DateTime LastSelected { get; set; } = DateTime.MinValue;
public Result(IList<int> titleHighlightData = null, IList<int> subTitleHighlightData = null)
{
TitleHighlightData = titleHighlightData;