From e3c9446a6d6ee3106f7fc6fe659af75b89095a36 Mon Sep 17 00:00:00 2001 From: Atticus Sebastiani Date: Fri, 21 Apr 2023 03:41:12 -0500 Subject: [PATCH 1/3] Gave the command update the alias u --- 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 eb5c156fb8e5..850293dc9fca 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2497,7 +2497,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ }, TypableCommand { name: "update", - aliases: &[], + aliases: &["u"], doc: "Write changes only if the file has been modified.", fun: update, signature: CommandSignature::none(), @@ -2867,4 +2867,4 @@ fn test_argument_number_of() { for case in cases { assert_eq!(case.1, argument_number_of(&Shellwords::from(case.0))); } -} +} \ No newline at end of file From e14a45236c2e24c65ddf79139b5dcb4ef3869050 Mon Sep 17 00:00:00 2001 From: Atticus Sebastiani Date: Fri, 21 Apr 2023 03:43:13 -0500 Subject: [PATCH 2/3] Re added trailing newline --- helix-term/src/commands/typed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 850293dc9fca..ea82dc366ca4 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2867,4 +2867,4 @@ fn test_argument_number_of() { for case in cases { assert_eq!(case.1, argument_number_of(&Shellwords::from(case.0))); } -} \ No newline at end of file +} From 7fef1e820f1c980f7979127b3710521fefa3e015 Mon Sep 17 00:00:00 2001 From: Atticus Sebastiani Date: Sat, 22 Apr 2023 00:43:58 -0500 Subject: [PATCH 3/3] generated docs --- book/src/generated/typable-cmd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 9d15b83c9c39..a9d68b75a210 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -46,7 +46,7 @@ | `: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. | -| `:update` | 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-restart` | Restarts the Language Server that is in use by the current doc | | `:lsp-stop` | Stops the Language Server that is in use by the current doc |