ENH 'enable' xterm extended keys

This commit is contained in:
Nathan Dwarshuis 2021-06-27 19:18:31 -04:00
parent 4fbf466a45
commit ef64c6ba21
2 changed files with 15 additions and 4 deletions

View File

@ -83,3 +83,10 @@ URxvt.keysym.Control-B: perl:clipboard:paste_escaped
! URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right ! URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right
! URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab ! URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab
! URxvt.tabbed.no-tabbedex-keys: true ! URxvt.tabbed.no-tabbedex-keys: true
! WARNING: this is a giant hack to 'enable' extended keys support (like xterm has).
! See here: http://www.leonerd.org.uk/hacks/fixterms/
! The main reason for this is that I really really wanted to use C-Tab in tmux
! but also didn't want to use xterm since urxvt is lighter and awesome-r
URxvt.keysym.C-Tab: \033[27;5;9~
URxvt.keysym.C-ISO_Left_Tab: \033[Z

View File

@ -2,6 +2,10 @@
set -g status-keys vi set -g status-keys vi
set -g mode-keys vi set -g mode-keys vi
# enable extended keys
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
# change prefix # change prefix
unbind C-b unbind C-b
set -g prefix C-f set -g prefix C-f
@ -26,10 +30,10 @@ bind - split-window -v
bind | split-window -h bind | split-window -h
# window navigation # window navigation
bind -n M-Tab next-window bind -n C-Tab next-window
bind -n M-BTab previous-window bind -n BTab previous-window # idk if there is even an extended sequence for Shift-Tab
bind -n M-] swap-window -t +1 \; next-window bind C-Tab swap-window -t +1 \; next-window
bind -n M-[ swap-window -t -1 \; previous-window bind BTab swap-window -t -1 \; previous-window
bind -n M-| choose-window "join-pane -h -t '%%'" bind -n M-| choose-window "join-pane -h -t '%%'"
bind -n M-- choose-window "join-pane -v -t '%%'" bind -n M-- choose-window "join-pane -v -t '%%'"