preservim / vimux

easily interact with tmux from vim
MIT License
2.21k stars 161 forks source link

Use pane_id instead of pane_index to identify a pane since the latter can change after a pane is created. #81

Closed vitillo closed 3 years ago

vitillo commented 11 years ago

By using pane_id instead of pane_index it is possible to open a pane through vimux and successively open/close new panes through tmux while continuing to send keys via vimux only to the original pane.

benmills commented 11 years ago

How far back does pane_id support go in tmux? I think this makes a lot of sense but I want to try and support tmux 1.6 and up.

vitillo commented 11 years ago

A grep of the 1.6 sources seems to confirm that pane_id is supported. I didn't try to run it though.

ersatzryan commented 11 years ago

this would also allow you to run commands in a pane which isn't visible, like if you have vim pane zoomed, correct?

vitillo commented 11 years ago

That doesn't work; I did not investigate further but I guess it shouldn't be too difficult to add this feature once panes are identified through pane_id.

ersatzryan commented 11 years ago

I haven't been able to send-keys to a pane that is hidden because of a zoomed pane, so I am not sure it it will be possible

alerque commented 3 years ago

Thanks for this contribution @vitillo. I'm sorry you didn't get credited with it in the history quite right, but this did eventually get merged (albeit belatedly) via the refactored version of this in PR #110.