From 05c399d92f4f9e728ebe2e0bb7e9600f92ef3c23 Mon Sep 17 00:00:00 2001 From: RobinFrcd <29704178+RobinFrcd@users.noreply.github.com> Date: Mon, 17 Mar 2025 20:55:39 +0100 Subject: [PATCH] Add keybinds for list/grid views --- src/key_bind.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/key_bind.rs b/src/key_bind.rs index 2a60495..569581d 100644 --- a/src/key_bind.rs +++ b/src/key_bind.rs @@ -46,7 +46,10 @@ pub fn key_binds(mode: &tab::Mode) -> HashMap { bind!([Ctrl], Key::Character("+".into()), ZoomIn); bind!([Ctrl], Key::Character("0".into()), ZoomDefault); bind!([Ctrl], Key::Character("-".into()), ZoomOut); - + // Switch view + bind!([Ctrl], Key::Character("1".into()), TabViewList); + bind!([Ctrl], Key::Character("2".into()), TabViewGrid); + // App-only keys if matches!(mode, tab::Mode::App) { bind!([Ctrl], Key::Character("d".into()), AddToSidebar);