@@ -49,12 +49,20 @@ public static Result CreateResult(Query query, SearchResult result)
49
49
50
50
internal static Result CreateFolderResult ( string title , string subtitle , string path , Query query , int score = 0 , bool windowsIndexed = false )
51
51
{
52
+ var pathSearchActionKeyword = Settings . PathSearchKeywordEnabled && ! Settings . SearchActionKeywordEnabled
53
+ ? Settings . PathSearchActionKeyword
54
+ : Settings . SearchActionKeyword == Query . GlobalPluginWildcardSign
55
+ ? string . Empty
56
+ : Settings . SearchActionKeyword ;
57
+
52
58
return new Result
53
59
{
54
60
Title = title ,
55
61
IcoPath = path ,
56
62
SubTitle = Path . GetDirectoryName ( path ) ,
57
- AutoCompleteText = GetPathWithActionKeyword ( path , ResultType . Folder , query . ActionKeyword ) ,
63
+ AutoCompleteText = ! Settings . PathSearchKeywordEnabled && ! Settings . SearchActionKeywordEnabled
64
+ ? $ "{ query . ActionKeyword } { title } " // Only Quick Access action keyword is used in this scenario
65
+ : GetPathWithActionKeyword ( path , ResultType . Folder , pathSearchActionKeyword ) ,
58
66
TitleHighlightData = StringMatcher . FuzzySearch ( query . Search , title ) . MatchData ,
59
67
CopyText = path ,
60
68
Action = c =>
@@ -73,7 +81,7 @@ internal static Result CreateFolderResult(string title, string subtitle, string
73
81
}
74
82
}
75
83
76
- Context . API . ChangeQuery ( GetPathWithActionKeyword ( path , ResultType . Folder , query . ActionKeyword ) ) ;
84
+ Context . API . ChangeQuery ( GetPathWithActionKeyword ( path , ResultType . Folder , pathSearchActionKeyword ) ) ;
77
85
78
86
return false ;
79
87
} ,
0 commit comments