Merge pull request #886 from RobinFrcd/add-views-keybinds
Add keybinds for list/grid views
This commit is contained in:
commit
5c2ed59f25
1 changed files with 4 additions and 1 deletions
|
|
@ -46,7 +46,10 @@ pub fn key_binds(mode: &tab::Mode) -> HashMap<KeyBind, Action> {
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue