diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-19 14:49:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-19 14:49:47 +1000 |
| commit | 0097c56e09b8501cabdfac2e15d536f121446cc4 (patch) | |
| tree | 8388d0b2bca7212c3ab4ba1f617b36bb6a05721f /modules/launcher/M3Variants.qml | |
| parent | feat: fzf-like search instead of fuzzy (diff) | |
| download | caelestia-shell-0097c56e09b8501cabdfac2e15d536f121446cc4.tar.gz caelestia-shell-0097c56e09b8501cabdfac2e15d536f121446cc4.tar.bz2 caelestia-shell-0097c56e09b8501cabdfac2e15d536f121446cc4.zip | |
config: add config for using fzf/fuzzy search
Diffstat (limited to 'modules/launcher/M3Variants.qml')
| -rw-r--r-- | modules/launcher/M3Variants.qml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |