File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 4545
4646 } ;
4747
48+ # Modal bindings for managing tabs
49+ hm . programs . kitty . extraConfig =
50+ /* bash */
51+ ''
52+ # Flags have to be before the actual binding to work
53+ # Doing something unknown leaves the mode
54+ map --new-mode mt --on-unknown end ctrl+k
55+
56+ # Exit mode automatically when creating/deleting tabs
57+ map --mode mt t combine : new_tab : pop_keyboard_mode
58+ map --mode mt d combine : close_window : pop_keyboard_mode
59+
60+ map --mode mt h previous_tab
61+ map --mode mt l next_tab
62+ map --mode mt shift+h move_tab_backward
63+ map --mode mt shift+l move_tab_forward
64+
65+ map --mode mt k scroll_line_up
66+ map --mode mt j scroll_line_down
67+ map --mode mt shift+k scroll_to_prompt -1
68+ map --mode mt shift+j scroll_to_prompt 1
69+
70+ # Exit mode
71+ map --mode mt i pop_keyboard_mode
72+ map --mode mt esc pop_keyboard_mode
73+
74+ '' ;
75+
4876 # Open terminal with Super+T
4977 hm . dconf . settings . "org/gnome/settings-daemon/plugins/media-keys" . custom-keybindings =
5078 [
You can’t perform that action at this time.
0 commit comments