wellle / tmux-complete.vim

Vim plugin for insert mode completion of words in adjacent tmux panes
MIT License
515 stars 21 forks source link

sh: optionally do not filter the current pane #54

Closed blueyed closed 9 years ago

blueyed commented 9 years ago

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?

wellle commented 9 years ago

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?

blueyed commented 9 years ago

Sounds good.

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

wellle commented 9 years ago

Totally.