summaryrefslogtreecommitdiffstats
path: root/src/verb/builtin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/verb/builtin.rs')
-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"),