kitty: add tab keybinds

This commit is contained in:
2024-04-13 12:27:51 +02:00
parent 3f2bf102d0
commit c9332fc3e9
2 changed files with 37 additions and 3 deletions

View File

@@ -893,7 +893,7 @@ hide_window_decorations yes
#: insensitive, from the set [0-9A-Z]. Specify your preference as a #: insensitive, from the set [0-9A-Z]. Specify your preference as a
#: string of characters. #: string of characters.
confirm_os_window_close 0 confirm_os_window_close 1
#: Ask for confirmation when closing an OS window or a tab with at #: Ask for confirmation when closing an OS window or a tab with at
#: least this number of kitty windows in it by window manager (e.g. #: least this number of kitty windows in it by window manager (e.g.
@@ -2390,7 +2390,40 @@ term xterm-256color
#: }}} #: }}}
map ctrl+shift+t launch --cwd=current --type=tab # Tab management
map ctrl+t launch --cwd=current --type=tab
map ctrl+shift+t launch --type=tab
map alt+1 goto_tab 1
map alt+2 goto_tab 2
map alt+3 goto_tab 3
map alt+4 goto_tab 4
map alt+5 goto_tab 5
map alt+6 goto_tab 6
map alt+7 goto_tab 7
map alt+8 goto_tab 8
map alt+9 goto_tab 8
map alt+0 goto_tab 0
# Window management
map ctrl+enter new_window_with_cwd
enabled_layouts tall,stack
map alt+f toggle_layout stack
map alt+shift+k move_window up
map alt+shift+h move_window left
map alt+shift+l move_window right
map alt+shift+j move_window down
map alt+k neighboring_window up
map alt+h neighboring_window left
map alt+l neighboring_window right
map alt+j neighboring_window down
map ctrl+left resize_window narrower
map ctrl+right resize_window wider
map ctrl+up resize_window taller
map ctrl+down resize_window shorter
map ctrl+backspace resize_window reset
# BEGIN_KITTY_THEME # BEGIN_KITTY_THEME

View File

@@ -19,9 +19,10 @@ alias dh1='du . -h -d1'
alias dhs='du . -hs' alias dhs='du . -hs'
alias diff_dir='diff -qr' alias diff_dir='diff -qr'
alias g='git' alias g='git'
alias l='eza --icons' alias l='eza --icons --hyperlink'
alias nd="nix develop ." alias nd="nix develop ."
alias nssh='SSH_AUTH_SOCK= ssh' alias nssh='SSH_AUTH_SOCK= ssh'
alias s='kitten ssh'
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE` alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
t(){ t(){
tmux new-session -A -s ${1:-dev} tmux new-session -A -s ${1:-dev}