mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
fix(editor): Fix vim mode quit and add "wq"
This changes `:q` to be quit (w/o saving) and added `:wq` to save *and* close.
This commit is contained in:
parent
b578e09986
commit
38366e45db
@ -178,7 +178,12 @@ export function Root(props: IProps): React.ReactElement {
|
||||
save();
|
||||
});
|
||||
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();
|
||||
props.router.toTerminal();
|
||||
});
|
||||
editor.focus();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user