summaryrefslogtreecommitdiffstats
path: root/src/verb/builtin.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-09-09 18:02:41 +0200
committerCanop <cano.petrole@gmail.com>2020-09-09 18:02:41 +0200
commit5edab5fd73ac38df12ff4ce7db21091f6bd8acbb (patch)
tree4d6fcdfae4f9b8a45a8529cff2e9df184b578a1a /src/verb/builtin.rs
parent752d44bb17b88da634818162113c9a8a0fb08d59 (diff)
ctrl-v now inserts the clipboard content in the input
when the "clipboard" feature is on. This behaviour may be mapped to another key, it's based on the new `:input_paste` verb
Diffstat (limited to 'src/verb/builtin.rs')
-rw-r--r--src/verb/builtin.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index c43b896..90375ed 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -36,7 +36,7 @@ pub fn builtin_verbs() -> Vec<Verb> {
.with_shortcut("cp"),
#[cfg(feature="clipboard")]
Verb::internal(copy_path)
- .with_alt_key( 'c' ),
+ .with_alt_key('c'),
Verb::external(
"copy_to_panel",
"/bin/cp -r {file} {other-panel-directory}",
@@ -49,6 +49,9 @@ pub fn builtin_verbs() -> Vec<Verb> {
Verb::internal(focus)
.with_control_key('f'),
Verb::internal(help).with_key(F1).with_shortcut("?"),
+ #[cfg(feature="clipboard")]
+ Verb::internal(input_paste)
+ .with_control_key('v'),
Verb::internal(line_down).with_key(DOWN),
Verb::internal(line_up).with_key(UP),
Verb::external(