mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Merge pull request #2241 from billyvg/fix/vim-save
fix(editor): Fix vim mode quit and add `wq`
This commit is contained in:
commit
a1ec54ff90
@ -178,7 +178,12 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
save();
|
save();
|
||||||
});
|
});
|
||||||
MonacoVim.VimMode.Vim.defineEx("quit", "q", function () {
|
MonacoVim.VimMode.Vim.defineEx("quit", "q", function () {
|
||||||
|
props.router.toTerminal();
|
||||||
|
});
|
||||||
|
// "wqriteandquit" is not a typo, prefix must be found in full string
|
||||||
|
MonacoVim.VimMode.Vim.defineEx("wqriteandquit", "wq", function () {
|
||||||
save();
|
save();
|
||||||
|
props.router.toTerminal();
|
||||||
});
|
});
|
||||||
editor.focus();
|
editor.focus();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user