Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: optionally do not filter the current pane #54

Closed
blueyed opened this issue Mar 7, 2015 · 3 comments · Fixed by #55
Closed

sh: optionally do not filter the current pane #54

blueyed opened this issue Mar 7, 2015 · 3 comments · Fixed by #55

Comments

@blueyed
Copy link
Contributor

blueyed commented Mar 7, 2015

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
Copy link
Owner

wellle commented Mar 7, 2015

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
Copy link
Contributor Author

blueyed commented Mar 7, 2015

Sounds good.

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

@wellle
Copy link
Owner

wellle commented Mar 8, 2015

Totally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants