forked from Shinonome/dots-hyprland
search: allow hiding actions when the prefix is not that of them
Co-Authored-By: reakjra <85903730+reakjra@users.noreply.github.com>
This commit is contained in:
@@ -266,6 +266,7 @@ Singleton {
|
|||||||
property list<string> excludedSites: ["quora.com"]
|
property list<string> excludedSites: ["quora.com"]
|
||||||
property bool sloppy: false // Uses levenshtein distance based scoring instead of fuzzy sort. Very weird.
|
property bool sloppy: false // Uses levenshtein distance based scoring instead of fuzzy sort. Very weird.
|
||||||
property JsonObject prefix: JsonObject {
|
property JsonObject prefix: JsonObject {
|
||||||
|
property bool showDefaultActionsWithoutPrefix: true
|
||||||
property string action: "/"
|
property string action: "/"
|
||||||
property string clipboard: ";"
|
property string clipboard: ";"
|
||||||
property string emojis: ":"
|
property string emojis: ":"
|
||||||
|
|||||||
@@ -415,9 +415,11 @@ Item { // Wrapper
|
|||||||
result = result.concat(launcherActionObjects);
|
result = result.concat(launcherActionObjects);
|
||||||
|
|
||||||
/// Math result, command, web search ///
|
/// Math result, command, web search ///
|
||||||
if (!startsWithShellCommandPrefix) result.push(commandResultObject);
|
if (Config.options.search.prefix.showDefaultActionsWithoutPrefix) {
|
||||||
if (!startsWithNumber && !startsWithMathPrefix) result.push(mathResultObject);
|
if (!startsWithShellCommandPrefix) result.push(commandResultObject);
|
||||||
if (!startsWithWebSearchPrefix) result.push(webSearchResultObject);
|
if (!startsWithNumber && !startsWithMathPrefix) result.push(mathResultObject);
|
||||||
|
if (!startsWithWebSearchPrefix) result.push(webSearchResultObject);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user