mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix history keybinding, make mainview command consistent
This commit is contained in:
parent
deee5b77a7
commit
db01ee90ee
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user