1

Currently I hard coded the pane of which to send the keys to, I wonder how can I send the command to the right pane of the pane I'm currently focused on?

Current:

bind b send-keys -t 2 'make' Enter

Would like to have:

bind b send-keys -t toTheRightPane 'make' Enter
2

I found the answer from Here

bind b send-keys -t right 'make' Enter
1
  • 1
    Other options include {down-of}, {bottom-left}, {top}, {up-of}, and more. e.g. bind b send-keys -t {down-of} 'make' Enter. That would send keys to the pane "down-of" (i.e. below) the currently active pane. – Jasha Oct 12 '19 at 3:13
2

More generic: repeat the last command in the last active pane - works with any build tool and any pane setup.

bind C-b send-keys -t ! C-p C-j  

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.