Add rl and rla aliasses for reload and reload-all commands (#7158)

pull/7020/merge
Zisulin Morbrot 1 year ago committed by GitHub
parent 015c079acc
commit fbd22afe29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,8 +46,8 @@
| `:show-directory`, `:pwd` | Show the current working directory. | | `:show-directory`, `:pwd` | Show the current working directory. |
| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. | | `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
| `:character-info`, `:char` | Get info about the character under the primary cursor. | | `:character-info`, `:char` | Get info about the character under the primary cursor. |
| `:reload` | Discard changes and reload from the source file. | | `:reload`, `:rl` | Discard changes and reload from the source file. |
| `:reload-all` | Discard changes and reload all documents from the source files. | | `:reload-all`, `:rla` | Discard changes and reload all documents from the source files. |
| `:update`, `:u` | Write changes only if the file has been modified. | | `:update`, `:u` | Write changes only if the file has been modified. |
| `:lsp-workspace-command` | Open workspace command picker | | `:lsp-workspace-command` | Open workspace command picker |
| `:lsp-restart` | Restarts the language servers used by the current doc | | `:lsp-restart` | Restarts the language servers used by the current doc |

@ -2581,14 +2581,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
}, },
TypableCommand { TypableCommand {
name: "reload", name: "reload",
aliases: &[], aliases: &["rl"],
doc: "Discard changes and reload from the source file.", doc: "Discard changes and reload from the source file.",
fun: reload, fun: reload,
signature: CommandSignature::none(), signature: CommandSignature::none(),
}, },
TypableCommand { TypableCommand {
name: "reload-all", name: "reload-all",
aliases: &[], aliases: &["rla"],
doc: "Discard changes and reload all documents from the source files.", doc: "Discard changes and reload all documents from the source files.",
fun: reload_all, fun: reload_all,
signature: CommandSignature::none(), signature: CommandSignature::none(),

Loading…
Cancel
Save