on master help sign in
Add rl and rla aliasses for reload and reload-all commands (#7158)
commitfbd22afe29ea9ddb833a3bf1c3b479ccab210c36 authorZisulin Morbrot <22527555+morlinbrot@users.noreply.github.com> dateTue 13 Jun 2023, 15:50 (3 years ago) parent015c079
2 files changed+4−4
book/src/generated/typable-cmd.md+2−2 helix-term/src/commands/typed.rs+2−2
book/src/generated/typable-cmd.md+2−2
@@ -46,8 +46,8 @@
4646| `:show-directory`, `:pwd` | Show the current working directory. |
4747| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
4848| `:character-info`, `:char` | Get info about the character under the primary cursor. |
49−| `:reload` | Discard changes and reload from the source file. |
50−| `:reload-all` | Discard changes and reload all documents from the source files. |
49+| `:reload`, `:rl` | Discard changes and reload from the source file. |
50+| `:reload-all`, `:rla` | Discard changes and reload all documents from the source files. |
5151| `:update`, `:u` | Write changes only if the file has been modified. |
5252| `:lsp-workspace-command` | Open workspace command picker |
5353| `: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] = &[
25812581 },
25822582 TypableCommand {
25832583 name: "reload",
2584− aliases: &[],
2584+ aliases: &["rl"],
25852585 doc: "Discard changes and reload from the source file.",
25862586 fun: reload,
25872587 signature: CommandSignature::none(),
25882588 },
25892589 TypableCommand {
25902590 name: "reload-all",
2591− aliases: &[],
2591+ aliases: &["rla"],
25922592 doc: "Discard changes and reload all documents from the source files.",
25932593 fun: reload_all,
25942594 signature: CommandSignature::none(),