Add ability to reload a file (#18395)

Closes #13212

Release Notes:

- Added reload command
- vim: Added `:e[dit]`, `:e[dit]!` which calls reload
This commit is contained in:
Peter Schilling
2024-10-15 13:02:18 -06:00
committed by GitHub
parent 695176898e
commit 56163b1e35
4 changed files with 15 additions and 3 deletions
+2
View File
@@ -685,6 +685,8 @@ fn generate_commands(_: &AppContext) -> Vec<VimCommand> {
VimCommand::new(("$", ""), EndOfDocument),
VimCommand::new(("%", ""), EndOfDocument),
VimCommand::new(("0", ""), StartOfDocument),
VimCommand::new(("e", "dit"), editor::actions::ReloadFile)
.bang(editor::actions::ReloadFile),
]
}