I have an iTerm setup where I often have vim running in one split pane, and guard running in a different split pane.
So the keyboard focus stays almost exclusively in the pane running vim.
Once in a while, I would like to have guard run all tasks, which is accomplished by a single enter key press in the guard split pane. But I have to first switch input focus to the different pane, press enter, and switch focus back. So I end up with this keyboard sequence: ⌘+] (mapped to switch panes), Enter, ⌘+[
It does work, but it's a lot of key presses.
Can I create a setup, so e.g ⌘+R could trigger en Enter keypress in the 'other' pane?