launcher: fix scheme and todo actions
Fix the autocomplete
This commit is contained in:
parent
62602465ce
commit
418f057482
2 changed files with 3 additions and 4 deletions
|
|
@ -89,7 +89,7 @@ const DEFAULTS = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
launcher: {
|
launcher: {
|
||||||
actionPrefix: ":", // Prefix for launcher actions
|
actionPrefix: ">", // Prefix for launcher actions
|
||||||
apps: {
|
apps: {
|
||||||
maxResults: 30, // Actual max results, -1 for infinite
|
maxResults: 30, // Actual max results, -1 for infinite
|
||||||
pins: [
|
pins: [
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
|
||||||
action: (...args) => {
|
action: (...args) => {
|
||||||
// If no args, autocomplete cmd
|
// If no args, autocomplete cmd
|
||||||
if (args.length === 0) {
|
if (args.length === 0) {
|
||||||
entry.set_text(">scheme ");
|
entry.set_text(`${config.actionPrefix.get()}scheme `);
|
||||||
entry.set_position(-1);
|
entry.set_position(-1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -79,7 +79,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
|
||||||
action: (...args) => {
|
action: (...args) => {
|
||||||
// If no args, autocomplete cmd
|
// If no args, autocomplete cmd
|
||||||
if (args.length === 0) {
|
if (args.length === 0) {
|
||||||
entry.set_text(">todo ");
|
entry.set_text(`${config.actionPrefix.get()}todo `);
|
||||||
entry.set_position(-1);
|
entry.set_position(-1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -195,7 +195,6 @@ export default class Actions extends Widget.Box implements LauncherContent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleActivate(): void {
|
handleActivate(): void {
|
||||||
this.#content.get_child_at_index(0)?.get_child()?.grab_focus();
|
|
||||||
this.#content.get_child_at_index(0)?.get_child()?.activate();
|
this.#content.get_child_at_index(0)?.get_child()?.activate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue