diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs index 4ff6070d4..7a79fbb3a 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs @@ -63,13 +63,16 @@ namespace Flow.Launcher.Plugin.Explorer.Search private bool ActionKeywordMatch(Query query, string allowedActionKeyword) { - if (settings.EnabledIndexOnlySearchKeyword && (settings.IndexOnlySearchActionKeyword == Query.GlobalPluginWildcardSign || query.ActionKeyword == allowedActionKeyword)) - return true; + if (query.ActionKeyword == settings.IndexOnlySearchActionKeyword) + return settings.IndexOnlySearchActionKeyword == allowedActionKeyword; - if (settings.EnabledPathSearchKeyword && (settings.PathSearchActionKeyword == Query.GlobalPluginWildcardSign || query.ActionKeyword == allowedActionKeyword)) - return true; + if (query.ActionKeyword == settings.PathSearchActionKeyword) + return settings.PathSearchActionKeyword == allowedActionKeyword; - return settings.SearchActionKeyword == Query.GlobalPluginWildcardSign || query.ActionKeyword == allowedActionKeyword; + if (query.ActionKeyword == settings.SearchActionKeyword) + return settings.SearchActionKeyword == allowedActionKeyword; + + return Query.GlobalPluginWildcardSign == allowedActionKeyword; } public async Task> PathSearchAsync(Query query, CancellationToken token = default) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs index 0359b00f7..99bc1bd8c 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs @@ -23,10 +23,6 @@ namespace Flow.Launcher.Plugin.Explorer public string PathSearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign; - public bool EnabledPathSearchKeyword { get; set; } - public string IndexOnlySearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign; - - public bool EnabledIndexOnlySearchKeyword { get; set; } } } \ No newline at end of file diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml index b49ae3465..0e1c7e872 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ActionKeywordSetting.xaml @@ -16,7 +16,6 @@ - @@ -24,9 +23,8 @@ Margin="10" Grid.Row="0" Width="105" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" /> - - + +