I am trying to bind F1 key to:
- Enter copy-mode
- Start a reverse search
The only thing I found online was:
bind-key F1 copy-mode \; send-key ?
However, that doesnt seem to work on tmux 2.4.
Is there a way to have it work on all tmux versions?
I am trying to bind F1 key to:
The only thing I found online was:
bind-key F1 copy-mode \; send-key ?
However, that doesnt seem to work on tmux 2.4.
Is there a way to have it work on all tmux versions?
This worked:
bind -n F1 copy-mode \; command-prompt -p "(search up)" "send -X search-backward \"%%%\""
bind -T copy-mode-vi F1 copy-mode \; command-prompt -p "(search up)" "send -X search-backward \"%%%\""