Skip to content

Commit df5028a

Browse files
committed
move default content search action keyword string to constants
1 parent 24fe5a1 commit df5028a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ internal static class Constants
2222

2323
internal const char AllFilesFolderSearchWildcard = '>';
2424

25+
internal const string DefaultContentSearchActionKeyword = "doc:";
26+
2527
internal const char DirectorySeperator = '\\';
2628

2729
internal const string WindowsIndexingOptions = "srchadmin.dll";

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
1+
using Flow.Launcher.Plugin.Explorer.Search;
2+
using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
23
using Newtonsoft.Json;
34
using System.Collections.Generic;
45

@@ -22,6 +23,6 @@ public class Settings
2223
public string SearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign;
2324

2425
[JsonProperty]
25-
public string FileContentSearchActionKeyword { get; set; } = "doc:";
26+
public string FileContentSearchActionKeyword { get; set; } = Constants.DefaultContentSearchActionKeyword;
2627
}
2728
}

0 commit comments

Comments
 (0)