on master help sign in
Add rl and rla aliasses for reload and reload-all commands (#7158)
fbd22afZisulin Morbrot
book/src/generated/typable-cmd.md+2−2
@@ -46,8 +46,8 @@
46| `:show-directory`, `:pwd` | Show the current working directory. |
46| `:show-directory`, `:pwd` | Show the current working directory. |
47| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
47| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
48| `:character-info`, `:char` | Get info about the character under the primary cursor. |
48| `:character-info`, `:char` | Get info about the character under the primary cursor. |
49−| `:reload` | Discard changes and reload from the source file. |
49+| `:reload`, `:rl` | Discard changes and reload from the source file. |
50−| `:reload-all` | Discard changes and reload all documents from the source files. |
50+| `:reload-all`, `:rla` | Discard changes and reload all documents from the source files. |
51| `:update`, `:u` | Write changes only if the file has been modified. |
51| `:update`, `:u` | Write changes only if the file has been modified. |
52| `:lsp-workspace-command` | Open workspace command picker |
52| `:lsp-workspace-command` | Open workspace command picker |
53| `:lsp-restart` | Restarts the language servers used by the current doc |
53| `:lsp-restart` | Restarts the language servers used by the current doc |
helix-term/src/commands/typed.rs+2−2
@@ -2581,14 +2581,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
2581 },
2581 },
2582 TypableCommand {
2582 TypableCommand {
2583 name: "reload",
2583 name: "reload",
2584− aliases: &[],
2584+ aliases: &["rl"],
2585 doc: "Discard changes and reload from the source file.",
2585 doc: "Discard changes and reload from the source file.",
2586 fun: reload,
2586 fun: reload,
2587 signature: CommandSignature::none(),
2587 signature: CommandSignature::none(),
2588 },
2588 },
2589 TypableCommand {
2589 TypableCommand {
2590 name: "reload-all",
2590 name: "reload-all",
2591− aliases: &[],
2591+ aliases: &["rla"],
2592 doc: "Discard changes and reload all documents from the source files.",
2592 doc: "Discard changes and reload all documents from the source files.",
2593 fun: reload_all,
2593 fun: reload_all,
2594 signature: CommandSignature::none(),
2594 signature: CommandSignature::none(),