Skip to content

Commit b5b21cf

Browse files
committed
rename IndexOnlySearchKeywordEnabled for consistency
1 parent 333d3da commit b5b21cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private bool ActionKeywordMatch(Query query, Settings.ActionKeyword allowedActio
7777
keyword == Settings.PathSearchActionKeyword,
7878
Settings.ActionKeyword.FileContentSearchActionKeyword => Settings.FileContentSearchKeywordEnabled &&
7979
keyword == Settings.FileContentSearchActionKeyword,
80-
Settings.ActionKeyword.IndexSearchActionKeyword => Settings.IndexOnlySearchKeywordEnabled &&
80+
Settings.ActionKeyword.IndexSearchActionKeyword => Settings.IndexSearchKeywordEnabled &&
8181
keyword == Settings.IndexSearchActionKeyword
8282
};
8383
}

Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Settings
3333

3434
public string IndexSearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign;
3535

36-
public bool IndexOnlySearchKeywordEnabled { get; set; }
36+
public bool IndexSearchKeywordEnabled { get; set; }
3737

3838
public bool WarnWindowsSearchServiceOff { get; set; } = true;
3939

@@ -67,7 +67,7 @@ internal enum ActionKeyword
6767
{
6868
ActionKeyword.SearchActionKeyword => SearchActionKeywordEnabled,
6969
ActionKeyword.PathSearchActionKeyword => PathSearchKeywordEnabled,
70-
ActionKeyword.IndexSearchActionKeyword => IndexOnlySearchKeywordEnabled,
70+
ActionKeyword.IndexSearchActionKeyword => IndexSearchKeywordEnabled,
7171
ActionKeyword.FileContentSearchActionKeyword => FileContentSearchKeywordEnabled,
7272
_ => throw new ArgumentOutOfRangeException(nameof(actionKeyword), actionKeyword, "ActionKeyword enabled status not defined")
7373
};
@@ -76,7 +76,7 @@ internal enum ActionKeyword
7676
{
7777
ActionKeyword.SearchActionKeyword => SearchActionKeywordEnabled = enable,
7878
ActionKeyword.PathSearchActionKeyword => PathSearchKeywordEnabled = enable,
79-
ActionKeyword.IndexSearchActionKeyword => IndexOnlySearchKeywordEnabled = enable,
79+
ActionKeyword.IndexSearchActionKeyword => IndexSearchKeywordEnabled = enable,
8080
ActionKeyword.FileContentSearchActionKeyword => FileContentSearchKeywordEnabled = enable,
8181
_ => throw new ArgumentOutOfRangeException(nameof(actionKeyword), actionKeyword, "ActionKeyword enabled status not defined")
8282
};

0 commit comments

Comments
 (0)