diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-18 13:19:26 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-18 13:20:50 +0100 |
commit | 2c02fe2aa9c014f7f1e922da75ab45b98da45f09 (patch) | |
tree | 1a6bf042ae11e3bda75ae743b64f5e4ebc49a7b4 /roles/tools/templates/tmux.conf.j2 | |
parent | cc3bfc1e324cfe44aae189d131b93f16d051bcee (diff) | |
download | Ansible-2c02fe2aa9c014f7f1e922da75ab45b98da45f09.tar.gz Ansible-2c02fe2aa9c014f7f1e922da75ab45b98da45f09.tar.zst Ansible-2c02fe2aa9c014f7f1e922da75ab45b98da45f09.zip |
Add keys to nest tmux
Diffstat (limited to 'roles/tools/templates/tmux.conf.j2')
-rw-r--r-- | roles/tools/templates/tmux.conf.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/tools/templates/tmux.conf.j2 b/roles/tools/templates/tmux.conf.j2 index a7ac4ce..0313336 100644 --- a/roles/tools/templates/tmux.conf.j2 +++ b/roles/tools/templates/tmux.conf.j2 | |||
@@ -18,6 +18,9 @@ bind-key -n M-Left previous-window | |||
18 | bind-key -n M-Right next-window | 18 | bind-key -n M-Right next-window |
19 | bind-key -n M-PageDown switch-client -n | 19 | bind-key -n M-PageDown switch-client -n |
20 | bind-key -n M-PageUp switch-client -p | 20 | bind-key -n M-PageUp switch-client -p |
21 | # duplicates to ensure continuity with "off" key-table | ||
22 | bind-key -n C-M-PageDown switch-client -n | ||
23 | bind-key -n C-M-PageUp switch-client -p | ||
21 | 24 | ||
22 | bind-key M set-window-option monitor-activity | 25 | bind-key M set-window-option monitor-activity |
23 | bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer; rm -f /tmp/tmux-buffer"' | 26 | bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer; rm -f /tmp/tmux-buffer"' |
@@ -29,6 +32,13 @@ bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \ | |||
29 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" | 32 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" |
30 | bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer" | 33 | bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer" |
31 | 34 | ||
35 | bind-key -T root F12 set-option prefix None \; set-option key-table off \; set-option status-style "bg=black" | ||
36 | bind-key -T off F12 set-option -u prefix \; set-option -u key-table \; set-option -u status-style | ||
37 | bind-key -T off C-M-PageDown switch-client -n | ||
38 | bind-key -T off C-M-PageUp switch-client -p | ||
39 | |||
40 | bind-key Tab command-prompt -p "which session?" "run-shell \"bash -i -c 'tmux_dev %1'\"" | ||
41 | |||
32 | # même hack que sur screen lorsqu'on veut profiter du scroll du terminal | 42 | # même hack que sur screen lorsqu'on veut profiter du scroll du terminal |
33 | # (xterm ...) | 43 | # (xterm ...) |
34 | set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc' | 44 | set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc' |