From 3f9154fc4f48b1119e449b4de729dd7d42fb0dd6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 May 2024 09:07:51 -0300 Subject: tmux, kitty: fake keybindings --- .tmux.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index dda9b5b..b51fe44 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -10,5 +10,23 @@ set-window-option -g window-status-current-style fg=colour251,bright bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" + bind -n C-S-Left swap-window -t -1 bind -n C-S-Right swap-window -t +1 + +# These are "fake" keybindings: we *want* to bind to key combinations +# that tmux can't actually detect (for one reason or another, but +# generally because it's not an ASCII-represented key chord). Instead +# we bind the commands to arbitrary codes that we probably won't want +# to actually press, and then configure the terminal editor (i.e. see +# kitty.conf) to actually pass the relevant keys along. +# +# Technically this also means we can customize the effective bindings +# per terminal emulator. + +bind -n M-S-a swap-window -t -1 \; previous-window ## bind to C-S-, (ctrl <) +bind -n M-S-b swap-window -t +1 \; next-window ## bind to C-S-. (ctrl >) +bind -n M-S-c previous-window ## bind to C-, (ctrl ,) +bind -n M-S-d next-window ## bind to C-. (ctrl .) + +# End "fake" keybindings. -- cgit 1.3.0-6-gf8a5