wellle / tmux-complete.vim

Vim plugin for insert mode completion of words in adjacent tmux panes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sh: optionally do not filter the current pane

blueyed opened this issue · comments

I'd like to use the shell script for the zsh completion method described in http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html / https://gist.github.com/blueyed/6856354, and that includes especially the current pane.

Maybe passing in the list of panes ($_tmux_panes) could be an option?

I understand. But I would probably prefer to add an argument to specify the pane selection strategy instead of outsourcing the implementation to the caller. Strategies could include:

Current pane
Current window
Current window without current pane
Current session (without current pane)
All sessions (without current pane)

That could be modeled by something like pane scope and a flag to skip the current pane.

Sounds good?

Sounds good.

While at it, this might be a good time to move from positional arguments to options maybe?