christoomey / vim-tmux-runner

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

Allow pane in another session #78

Open Hermanverschooten opened 7 years ago

Hermanverschooten commented 7 years ago

I know it's a longshot, but would it be possible to allow selecting a pane in a different session?

Perhaps add a specific command to allow this, that then disables the check on the valid pane?

Why? I often work on my MacBook and use a second screen. It would be so useful to be able to use my vim fullscreen, and run the tests in another window on my second screen.

I added a VtrSpeccie command to my fork that sets s:runner_pane to "speccie:1", and commented out the call to s:ValidRunnerPaneNumber. This works.

christoomey commented 7 years ago

Hi @Hermanverschooten, there is nothing inherently too complicated about this, but unfortunately I'd be weary of tackling this change with the code in its current form. I've been planning a refactoring (summarized in https://github.com/christoomey/vim-tmux-runner/issues/66) for a while and I'd want to land that before adding any more complexity to the pane attachment and configuration code.

I'll keep this issue open in the interim to remind myself of this down the road when I do dig into that refactor.