summaryrefslogtreecommitdiffstats
path: root/src/verb
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-12-14 06:55:17 +0100
committerCanop <cano.petrole@gmail.com>2022-12-14 06:55:17 +0100
commit41ef2b8349633475f28641a6ca7d322347ab4aeb (patch)
tree7a90fcecdb4262f96e0868999ff2a1ff190ba354 /src/verb
parenteaff7d744cba55df8306d0fb276a899988b84135 (diff)
windows version of :cpp
Diffstat (limited to 'src/verb')
-rw-r--r--src/verb/builtin.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index 3646672..d45c6c9 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -124,12 +124,20 @@ pub fn builtin_verbs() -> Vec<Verb> {
.with_key(key!(alt-c)),
#[cfg(feature = "clipboard")]
internal(copy_path),
+ #[cfg(unix)]
external(
"copy_to_panel",
"cp -r {file} {other-panel-directory}",
StayInBroot,
)
.with_shortcut("cpp"),
+ #[cfg(windows)]
+ external(
+ "copy_to_panel",
+ "xcopy /Q /H /Y /I {file} {other-panel-directory}",
+ StayInBroot,
+ )
+ .with_shortcut("cpp"),
#[cfg(unix)]
internal(filesystems)
.with_shortcut("fs"),