Set default F without Shift

This commit is contained in:
Daniele Viganò 2025-01-28 13:38:15 +01:00
parent dad856bd5e
commit 205b7e35cb
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
3 changed files with 12 additions and 11 deletions

View File

@ -1,6 +0,0 @@
# From byobu
bind -n F2 new-window
bind -n F3 previous-window
bind -n F4 next-window
bind -n F8 command-prompt -p "(rename-window) " "rename-window '%%'"
bind -n S-F12 source ~/.config/tmux/tmux.conf \; display-message "F-keys: SHIFT"

6
tmux-shift.conf Normal file
View File

@ -0,0 +1,6 @@
# From byobu
bind -n S-F2 new-window
bind -n S-F3 previous-window
bind -n S-F4 next-window
bind -n S-F8 command-prompt -p "(rename-window) " "rename-window '%%'"
bind -n S-F12 source ~/.config/tmux/tmux.conf \; display-message "F-keys: NO SHIFT"

View File

@ -32,11 +32,11 @@ unbind -n F3
unbind -n F4 unbind -n F4
unbind -n F8 unbind -n F8
bind -n S-F2 new-window bind -n F2 new-window
bind -n S-F3 previous-window bind -n F3 previous-window
bind -n S-F4 next-window bind -n F4 next-window
bind -n S-F8 command-prompt -p "(rename-window) " "rename-window '%%'" bind -n F8 command-prompt -p "(rename-window) " "rename-window '%%'"
bind -n S-F12 source ~/.config/tmux/tmux-no-shift.conf \; display-message "F-keys: NO SHIFT" bind -n S-F12 source ~/.config/tmux/tmux-shift.conf \; display-message "F-keys: SHIFT"
# Shift Alt vim keys to switch windows # Shift Alt vim keys to switch windows
# bind -n M-H previous-window # bind -n M-H previous-window
@ -64,3 +64,4 @@ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind '|' split-window -v -c "#{pane_current_path}" bind '|' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}"
unbind M-Right