From ee60d1a71a79d4895c04a56125ce3ceefad2866a Mon Sep 17 00:00:00 2001 From: morlinbrot Date: Sun, 28 May 2023 12:55:34 +0200 Subject: [PATCH 1/2] Add rl and rla aliasses for reload and reload-all commands --- helix-term/src/commands/typed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 706442e45dcd..7171fee5c14c 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2560,14 +2560,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(), From b9c1f64fbeb7a0b6c19cc593d8f7a4504ec12937 Mon Sep 17 00:00:00 2001 From: morlinbrot Date: Sun, 28 May 2023 16:43:12 +0200 Subject: [PATCH 2/2] Run xtask docgen --- book/src/generated/typable-cmd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 0f488dc042d3..5fcafd5c362c 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 |