summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-01 16:46:24 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-01 16:46:24 +1100
commit418f057482464f4102d601d9394b5ae15f6a4b9d (patch)
treed8b09d7c755a713271296127ea017a2daf83b6bd
parentlauncher: actions + refactor into multi file (diff)
downloadcaelestia-shell-418f057482464f4102d601d9394b5ae15f6a4b9d.tar.gz
caelestia-shell-418f057482464f4102d601d9394b5ae15f6a4b9d.tar.bz2
caelestia-shell-418f057482464f4102d601d9394b5ae15f6a4b9d.zip
launcher: fix scheme and todo actions
Fix the autocomplete
-rw-r--r--config.ts2
-rw-r--r--src/modules/launcher/actions.tsx5
2 files changed, 3 insertions, 4 deletions
diff --git a/config.ts b/config.ts
index 89398a0..ce4b262 100644
--- a/config.ts
+++ b/config.ts
@@ -89,7 +89,7 @@ const DEFAULTS = {
},
},
launcher: {
- actionPrefix: ":", // Prefix for launcher actions
+ actionPrefix: ">", // Prefix for launcher actions
apps: {
maxResults: 30, // Actual max results, -1 for infinite
pins: [
diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx
index de9f454..52910ea 100644
--- a/src/modules/launcher/actions.tsx
+++ b/src/modules/launcher/actions.tsx
@@ -63,7 +63,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
action: (...args) => {
// If no args, autocomplete cmd
if (args.length === 0) {
- entry.set_text(">scheme ");
+ entry.set_text(`${config.actionPrefix.get()}scheme `);
entry.set_position(-1);
return;
}
@@ -79,7 +79,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
action: (...args) => {
// If no args, autocomplete cmd
if (args.length === 0) {
- entry.set_text(">todo ");
+ entry.set_text(`${config.actionPrefix.get()}todo `);
entry.set_position(-1);
return;
}
@@ -195,7 +195,6 @@ export default class Actions extends Widget.Box implements LauncherContent {
}
handleActivate(): void {
- this.#content.get_child_at_index(0)?.get_child()?.grab_focus();
this.#content.get_child_at_index(0)?.get_child()?.activate();
}
}