search
This commit is contained in:
1 parent
10ffe765b0
commit
d42e24be81
10 files changed
+350
-394
No files matched your search
@@ -11,16 +11,15 @@ Item {
|
||||
readonly property string configPath: Quickshell.env("SKYG_WORKSPACE_MANAGER") ?? ""
|
||||
|
||||
// Keys written as modifiers plus one key, like "Ctrl+N".
|
||||
property string renameKey
|
||||
property string windowsKey
|
||||
|
||||
property bool showHints
|
||||
// "{key}" in a hint is replaced by its key.
|
||||
property string renameHint
|
||||
property string windowsHint
|
||||
property string exitWindowsHint
|
||||
// The search keys (/, n, N) are fixed, like in vim.
|
||||
property string searchHint
|
||||
|
||||
readonly property string renameHintText: root.fillKey(root.renameHint, root.renameKey)
|
||||
readonly property string windowsHintText: root.fillKey(root.windowsHint, root.windowsKey)
|
||||
readonly property string exitWindowsHintText: root.fillKey(root.exitWindowsHint, root.windowsKey)
|
||||
|
||||
@@ -67,12 +66,13 @@ Item {
|
||||
function load(parsed): void {
|
||||
const keys = parsed.keys ?? {};
|
||||
const hints = parsed.hints ?? {};
|
||||
root.renameKey = root.keyOr(keys.rename, "Ctrl+N", "keys.rename");
|
||||
|
||||
root.windowsKey = root.keyOr(keys.windows, "Tab", "keys.windows");
|
||||
root.showHints = root.boolOr(hints.show, true, "hints.show");
|
||||
root.renameHint = root.textOr(hints.rename, "{key}: to switch here", "hints.rename");
|
||||
|
||||
root.windowsHint = root.textOr(hints.windows, "{key}: to see windows", "hints.windows");
|
||||
root.exitWindowsHint = root.textOr(hints.exitWindows, "{key} or Esc: to exit window carousel", "hints.exitWindows");
|
||||
root.searchHint = root.textOr(hints.search, "/: to search windows, n / N: next / previous match", "hints.search");
|
||||
}
|
||||
|
||||
// ── keys ────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in new issue
Block a user