on master help sign in
make `:u` alias `:update` (#6835)

* Gave the command update the alias u * Re added trailing newline * generated docs

commit228a4af35fec3be633c31ecbbdf0b6f7bb7a9fcd authorAtticus Sebastiani <codingwizardgames@gmail.com> dateSat 22 Apr 2023, 21:07 (4 years ago) parentb7c62e2
2 files changed+2−2
book/src/generated/typable-cmd.md+1−1 helix-term/src/commands/typed.rs+1−1
book/src/generated/typable-cmd.md+1−1
@@ -46,7 +46,7 @@
4646| `:character-info`, `:char` | Get info about the character under the primary cursor. |
4747| `:reload` | Discard changes and reload from the source file. |
4848| `:reload-all` | Discard changes and reload all documents from the source files. |
49−| `:update` | Write changes only if the file has been modified. |
49+| `:update`, `:u` | Write changes only if the file has been modified. |
5050| `:lsp-workspace-command` | Open workspace command picker |
5151| `:lsp-restart` | Restarts the Language Server that is in use by the current doc |
5252| `:lsp-stop` | Stops the Language Server that is in use by the current doc |
helix-term/src/commands/typed.rs+1−1
@@ -2497,7 +2497,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
24972497 },
24982498 TypableCommand {
24992499 name: "update",
2500− aliases: &[],
2500+ aliases: &["u"],
25012501 doc: "Write changes only if the file has been modified.",
25022502 fun: update,
25032503 signature: CommandSignature::none(),