aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZisulin Morbrot2023-06-13 13:50:50 +0000
committerGitHub2023-06-13 13:50:50 +0000
commitfbd22afe29ea9ddb833a3bf1c3b479ccab210c36 (patch)
tree1089550e96e29af26433377d62e4411f08bbce49
parent015c079acc59653390797cbd700fdf7657e220a9 (diff)
Add rl and rla aliasses for reload and reload-all commands (#7158)
-rw-r--r--book/src/generated/typable-cmd.md4
-rw-r--r--helix-term/src/commands/typed.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index 0f488dc0..5fcafd5c 100644
--- a/book/src/generated/typable-cmd.md
+++ b/book/src/generated/typable-cmd.md
@@ -46,8 +46,8 @@
| `:show-directory`, `:pwd` | Show the current working directory. |
| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
| `:character-info`, `:char` | Get info about the character under the primary cursor. |
-| `:reload` | Discard changes and reload from the source file. |
-| `:reload-all` | Discard changes and reload all documents from the source files. |
+| `:reload`, `:rl` | Discard changes and reload from the source file. |
+| `:reload-all`, `:rla` | Discard changes and reload all documents from the source files. |
| `:update`, `:u` | Write changes only if the file has been modified. |
| `:lsp-workspace-command` | Open workspace command picker |
| `:lsp-restart` | Restarts the language servers used by the current doc |
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 824abbf4..80beab31 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -2581,14 +2581,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
},
TypableCommand {
name: "reload",
- aliases: &[],
+ aliases: &["rl"],
doc: "Discard changes and reload from the source file.",
fun: reload,
signature: CommandSignature::none(),
},
TypableCommand {
name: "reload-all",
- aliases: &[],
+ aliases: &["rla"],
doc: "Discard changes and reload all documents from the source files.",
fun: reload_all,
signature: CommandSignature::none(),