christoomey / vim-tmux-runner

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

Add EnsurePaneAndRun #27

Closed christoomey closed 9 years ago

christoomey commented 9 years ago

This is currently implicit behavior of the run pane command. This feels wrong as I only want this in some cases, specifically test running. This will create an explicit command, :EnsurePaneAndRun and associated function, that will do this. The other commands will error if there is no runner pane.

christoomey commented 9 years ago

Alternately, add a bang version of each command that will ensure pane. e.g. :VtrSendCommand expects an existing pane and errors if none is attached, while :VtrSendCommand! will create one as needed.

Also need to update VtrSendCommand function with an optional second argument for the ensure pane functionality (default to false).