launcher: fix scheme and todo actions

Fix the autocomplete
This commit is contained in:
2 * r + 2 * t 2025-03-01 16:46:24 +11:00
parent 62602465ce
commit 418f057482
2 changed files with 3 additions and 4 deletions

View file

@ -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: [

View file

@ -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();
}
}