summaryrefslogtreecommitdiff
path: root/modules/launcher
diff options
context:
space:
mode:
Diffstat (limited to 'modules/launcher')
-rw-r--r--modules/launcher/Actions.qml1
-rw-r--r--modules/launcher/M3Variants.qml4
-rw-r--r--modules/launcher/Schemes.qml2
-rw-r--r--modules/launcher/WallpaperList.qml2
4 files changed, 7 insertions, 2 deletions
diff --git a/modules/launcher/Actions.qml b/modules/launcher/Actions.qml
index 0e658f0..afe831b 100644
--- a/modules/launcher/Actions.qml
+++ b/modules/launcher/Actions.qml
@@ -142,6 +142,7 @@ Searcher {
}
list: actions.filter(a => !a.disabled)
+ useFuzzy: Config.launcher.useFuzzy.actions
component Action: QtObject {
required property string name
diff --git a/modules/launcher/M3Variants.qml b/modules/launcher/M3Variants.qml
index 4312ff1..69bd805 100644
--- a/modules/launcher/M3Variants.qml
+++ b/modules/launcher/M3Variants.qml
@@ -1,5 +1,6 @@
pragma Singleton
+import qs.config
import qs.utils
import Quickshell
import QtQuick
@@ -7,7 +8,7 @@ import QtQuick
Searcher {
id: root
- function transformSearch(search: string): var {
+ function transformSearch(search: string): string {
return search.slice(`${Config.launcher.actionPrefix}variant `.length);
}
@@ -67,6 +68,7 @@ Searcher {
description: "All colours are grayscale, no chroma."
}
]
+ useFuzzy: Config.launcher.useFuzzy.variants
component Variant: QtObject {
required property string variant
diff --git a/modules/launcher/Schemes.qml b/modules/launcher/Schemes.qml
index 2be8558..068dcbd 100644
--- a/modules/launcher/Schemes.qml
+++ b/modules/launcher/Schemes.qml
@@ -1,5 +1,6 @@
pragma Singleton
+import qs.config
import qs.utils
import Quickshell
import Quickshell.Io
@@ -13,6 +14,7 @@ Searcher {
}
list: schemes.instances
+ useFuzzy: Config.launcher.useFuzzy.schemes
Variants {
id: schemes
diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml
index 78cc146..f59dd29 100644
--- a/modules/launcher/WallpaperList.qml
+++ b/modules/launcher/WallpaperList.qml
@@ -27,7 +27,7 @@ PathView {
readonly property string search: root.search.text.split(" ").slice(1).join(" ")
values: {
- const list = Wallpapers.fuzzyQuery(search);
+ const list = Wallpapers.query(search);
if (list.length > 1 && list.length % 2 === 0)
list.length -= 1; // Always show odd number
return list;