ENH 'enable' xterm extended keys
This commit is contained in:
parent
4fbf466a45
commit
ef64c6ba21
|
@ -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
|
||||||
|
|
|
@ -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 '%%'"
|
||||||
|
|
Loading…
Reference in New Issue