ENH remove extended keys (they do weird things)
This commit is contained in:
parent
40653794e9
commit
4c20c7e896
|
@ -84,11 +84,7 @@ URxvt.keysym.Control-B: perl:clipboard:paste_escaped
|
||||||
! 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).
|
! because C-Tab does not actually exist in terminals, bind them to something
|
||||||
! See here: http://www.leonerd.org.uk/hacks/fixterms/
|
! random that I can use in tmux (in this case M-F11 and M-F12)
|
||||||
! The main reason for this is that I really really wanted to use C-Tab in tmux
|
URxvt.keysym.C-Tab: \033\033[24~
|
||||||
! but also did not want to use xterm since urxvt is lighter and awesome-r
|
URxvt.keysym.C-ISO_Left_Tab: \033\033[23~
|
||||||
URxvt.keysym.C-Tab: \033[27;5;9~
|
|
||||||
! make shift-tab send M-F12 since I there appears to not be anything for this
|
|
||||||
! even in extended keys from xterm
|
|
||||||
URxvt.keysym.C-ISO_Left_Tab: \033\033[24~
|
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
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
|
||||||
|
@ -30,10 +26,10 @@ bind - split-window -v
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
|
|
||||||
# window navigation
|
# window navigation
|
||||||
bind -n C-Tab next-window
|
bind -n M-F12 next-window # use this since C-Tab doesn't exist in most terminals
|
||||||
bind -n M-F12 previous-window # use this since BTab = S-Esc (even in extended keys)
|
bind -n M-F11 previous-window # use this since BTab = S-Esc
|
||||||
bind C-Tab swap-window -t +1 \; next-window
|
bind M-F12 swap-window -t +1 \; next-window
|
||||||
bind M-F12 swap-window -t -1 \; previous-window
|
bind M-F11 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