summaryrefslogtreecommitdiffstats
path: root/src/verb/builtin.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-01-04 21:36:16 +0100
committerCanop <cano.petrole@gmail.com>2021-01-04 21:36:16 +0100
commit061670401814e1aaad02b2173f211698cf99f0e9 (patch)
treecfe1e88ee1b168ab8e574540e513845d0b0c8056 /src/verb/builtin.rs
parentc7a6713cde3e68f087edc23f2e3b1e43321aedbf (diff)
:copy_line, for copying the selected line in preview
alt-c is now mapped to the new :copy_line verb which, when in tree, puts the selected path in the clipboard and, when in text preview, puts the selected text line in the clipboard Fix #322
Diffstat (limited to 'src/verb/builtin.rs')
-rw-r--r--src/verb/builtin.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index 858ec9d..38c4017 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -87,8 +87,10 @@ pub fn builtin_verbs() -> Vec<Verb> {
)
.with_shortcut("cp"),
#[cfg(feature = "clipboard")]
- internal(copy_path)
+ internal(copy_line)
.with_alt_key('c'),
+ #[cfg(feature = "clipboard")]
+ internal(copy_path),
external(
"copy_to_panel",
"cp -r {file} {other-panel-directory}",