Add :mv
as an alias for :move
(#11256)
`mv` is the familiar shell command to move or rename a file. Add this to Helix as an alias for `:move`.
This commit is contained in:
parent
6c0a7f60eb
commit
70a9477ec8
2 changed files with 2 additions and 2 deletions
|
@ -85,6 +85,6 @@
|
||||||
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
|
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
|
||||||
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
|
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
|
||||||
| `:redraw` | Clear and re-render the whole UI |
|
| `:redraw` | Clear and re-render the whole UI |
|
||||||
| `:move` | Move the current buffer and its corresponding file to a different path |
|
| `:move`, `:mv` | Move the current buffer and its corresponding file to a different path |
|
||||||
| `:yank-diagnostic` | Yank diagnostic(s) under primary cursor to register, or clipboard by default |
|
| `:yank-diagnostic` | Yank diagnostic(s) under primary cursor to register, or clipboard by default |
|
||||||
| `:read`, `:r` | Load a file into buffer |
|
| `:read`, `:r` | Load a file into buffer |
|
||||||
|
|
|
@ -3122,7 +3122,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
|
||||||
},
|
},
|
||||||
TypableCommand {
|
TypableCommand {
|
||||||
name: "move",
|
name: "move",
|
||||||
aliases: &[],
|
aliases: &["mv"],
|
||||||
doc: "Move the current buffer and its corresponding file to a different path",
|
doc: "Move the current buffer and its corresponding file to a different path",
|
||||||
fun: move_buffer,
|
fun: move_buffer,
|
||||||
signature: CommandSignature::positional(&[completers::filename]),
|
signature: CommandSignature::positional(&[completers::filename]),
|
||||||
|
|
Loading…
Add table
Reference in a new issue