summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-12-22 09:42:07 +0100
committerCanop <cano.petrole@gmail.com>2021-12-22 09:42:07 +0100
commitf7520dc392fa3a38bac94e491c6fd1321266f971 (patch)
tree2bf47ecad1d9c453fad07afb642cc419fcd9f712 /src
parent5bf8703c14062d5a2134f57634248e49f4aff63f (diff)
alt-i and alt-h now toggle showing gitignored and hidden files
Diffstat (limited to 'src')
-rw-r--r--src/verb/builtin.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/verb/builtin.rs b/src/verb/builtin.rs
index 00e161a..7cfca68 100644
--- a/src/verb/builtin.rs
+++ b/src/verb/builtin.rs
@@ -230,11 +230,21 @@ pub fn builtin_verbs() -> Vec<Verb> {
internal(toggle_dates).with_shortcut("dates"),
internal(toggle_device_id).with_shortcut("dev"),
internal(toggle_files).with_shortcut("files"),
- internal(toggle_git_ignore).with_shortcut("gi"),
+ internal(toggle_git_ignore)
+ .with_key(KeyEvent {
+ code: KeyCode::Char('i'),
+ modifiers: KeyModifiers::ALT,
+ })
+ .with_shortcut("gi"),
internal(toggle_git_file_info).with_shortcut("gf"),
internal(toggle_git_status).with_shortcut("gs"),
internal(toggle_root_fs).with_shortcut("rfs"),
- internal(toggle_hidden).with_shortcut("h"),
+ internal(toggle_hidden)
+ .with_key(KeyEvent {
+ code: KeyCode::Char('h'),
+ modifiers: KeyModifiers::ALT,
+ })
+ .with_shortcut("h"),
#[cfg(unix)]
internal(toggle_perm).with_shortcut("perm"),
internal(toggle_sizes).with_shortcut("sizes"),