diff options
author | Canop <cano.petrole@gmail.com> | 2021-05-29 18:50:12 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-05-29 18:50:12 +0200 |
commit | 07e95eab0ad33e035c7efe39442f18d1eff6e23c (patch) | |
tree | 58f103b4a5c3e00823b531692cc4421a176dacdd /src/verb/builtin.rs | |
parent | 2cae879e39eee7f9caa3c0546a1114bc5ddf4c02 (diff) |
:rename verb (and what makes it possible)
new auto_exec verb argument
new standard verb arguments:
file-name, file-stem, file-extension and file-dot-extension
Diffstat (limited to 'src/verb/builtin.rs')
-rw-r--r-- | src/verb/builtin.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs index 26a12a2..8f27f2f 100644 --- a/src/verb/builtin.rs +++ b/src/verb/builtin.rs @@ -79,7 +79,7 @@ pub fn builtin_verbs() -> Vec<Verb> { internal(close_panel_cancel) .with_control_key('w'), external( - "copy {newpath:path-from-parent}", + "copy {newpath}", "cp -r {file} {newpath:path-from-parent}", StayInBroot, ) @@ -122,7 +122,7 @@ pub fn builtin_verbs() -> Vec<Verb> { ) .with_shortcut("md"), external( - "move {newpath:path-from-parent}", + "move {newpath}", "mv {file} {newpath:path-from-parent}", StayInBroot, ) @@ -134,10 +134,11 @@ pub fn builtin_verbs() -> Vec<Verb> { ) .with_shortcut("mvp"), external( - "rename {from-filename:new_filename}", + "rename {new_filename:file-name}", "mv {file} {parent}/{new_filename}", StayInBroot, ) + .with_auto_exec(false) .with_key(F2), internal_bang(start_end_panel) .with_control_key('p'), |