summaryrefslogtreecommitdiffstats
path: root/src/verb/builtin.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-08-18 14:36:43 +0200
committerCanop <cano.petrole@gmail.com>2020-08-18 14:36:43 +0200
commit5a4475f85a8be94a74dc006ff86c497623b2d111 (patch)
tree4fe7fc3cf8944f0ccde13a2873ace12d49560be8 /src/verb/builtin.rs
parentdb2da21a7629f9685f4d062895e5d02db59ca80d (diff)
made :focus more accessible when a file is selected
Diffstat (limited to 'src/verb/builtin.rs')
-rw-r--r--src/verb/builtin.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index ead2e6e..294bb79 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -38,7 +38,11 @@ pub fn builtin_verbs() -> Vec<Verb> {
)
.unwrap()
.with_shortcut("cpp"),
- Verb::internal(focus), // hardcoded Enter
+ // :focus is also hardcoded on Enter on directories
+ // but ctrl-f is useful for focusing on a file's parent
+ // (and keep the filter)
+ Verb::internal(focus)
+ .with_control_key('f'),
Verb::internal(help).with_key(F1).with_shortcut("?"),
Verb::internal(line_down).with_key(DOWN),
Verb::internal(line_up).with_key(UP),