aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtticus Sebastiani2023-04-23 02:07:34 +0000
committerGitHub2023-04-23 02:07:34 +0000
commit228a4af35fec3be633c31ecbbdf0b6f7bb7a9fcd (patch)
tree7c4ce557df08398e7ec37a57b12ebcbe07ed3887
parentb7c62e200e0fbe600855e6a2d492286349cae4ae (diff)
make `:u` alias `:update` (#6835)
* Gave the command update the alias u * Re added trailing newline * generated docs
-rw-r--r--book/src/generated/typable-cmd.md2
-rw-r--r--helix-term/src/commands/typed.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index 9d15b83c..a9d68b75 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 |
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index eb5c156f..ea82dc36 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(),