fix history keybinding, make mainview command consistent

This commit is contained in:
sawka 2024-03-13 18:43:53 -07:00
parent deee5b77a7
commit db01ee90ee
2 changed files with 7 additions and 5 deletions

View File

@ -36,7 +36,7 @@
"keys": ["PageDown"] "keys": ["PageDown"]
}, },
{ {
"command": "app:openHistory", "command": "app:openHistoryView",
"keys": ["Cmd:h"] "keys": ["Cmd:h"]
}, },
{ {
@ -183,7 +183,7 @@
"keys": ["Cmd:d"] "keys": ["Cmd:d"]
}, },
{ {
"command": "app:bookmarkActiveLine", "command": "app:openBookmarksView",
"keys": ["Cmd:b"], "keys": ["Cmd:b"],
"commandStr": "/bookmarks:show" "commandStr": "/bookmarks:show"
}, },

View File

@ -233,12 +233,14 @@ class Model {
this.keybindManager.registerKeybinding("app", "model", "app:selectWorkspace-" + index, null); this.keybindManager.registerKeybinding("app", "model", "app:selectWorkspace-" + index, null);
} }
this.keybindManager.registerKeybinding("app", "model", "app:focusCmdInput", (waveEvent) => { this.keybindManager.registerKeybinding("app", "model", "app:focusCmdInput", (waveEvent) => {
console.log("focus cmd input callback");
this.onFocusCmdInputPressed(); this.onFocusCmdInputPressed();
return true; return true;
}); });
this.keybindManager.registerKeybinding("app", "model", "app:bookmarkActiveLine", null); this.keybindManager.registerKeybinding("app", "model", "app:openBookmarksView", null);
this.keybindManager.registerKeybinding("app", "model", "app:openHistory", null); this.keybindManager.registerKeybinding("app", "model", "app:openHistoryView", (waveEvent) => {
this.onOpenHistoryPressed();
return true;
});
this.keybindManager.registerKeybinding("app", "model", "app:openTabSearchModal", (waveEvent) => { this.keybindManager.registerKeybinding("app", "model", "app:openTabSearchModal", (waveEvent) => {
this.onOpenTabSearchModalPressed(); this.onOpenTabSearchModalPressed();
return true; return true;