refactor(command_palette): use declarative command approach

This commit is contained in:
Elian Doran
2025-07-27 21:16:23 +03:00
parent fa9b142cb7
commit 964bc74b83
3 changed files with 29 additions and 10 deletions

View File

@@ -179,6 +179,7 @@ export default class JumpToNoteDialog extends BasicWidget {
// If we restored a command mode value, manually trigger command display
if (this.isCommandMode) {
console.log("DEBUG: Restoring command mode, clearing and showing commands");
// Clear the value first, then set it to ">" to trigger a proper change
this.$autoComplete.autocomplete("val", "");
noteAutocompleteService.showAllCommands(this.$autoComplete);