From f7520dc392fa3a38bac94e491c6fd1321266f971 Mon Sep 17 00:00:00 2001 From: Canop Date: Wed, 22 Dec 2021 09:42:07 +0100 Subject: alt-i and alt-h now toggle showing gitignored and hidden files --- src/verb/builtin.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') 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 { 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"), -- cgit v1.2.3