christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Automatically detect and exit copy mode when sending commands #70

Open christoomey opened 7 years ago

christoomey commented 7 years ago

We can detect if a pane is in copy mode with tmux display-message -p -F '#{pane_in_mode}' which is 1 if in copy mode, else 0. If detected, we should first send 'q' to exit copy mode, then send the command.