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

Could this support nvim-window-picker? #122

Open
dirichy opened this issue Jul 15, 2024 · 3 comments
Open

Could this support nvim-window-picker? #122

dirichy opened this issue Jul 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@dirichy
Copy link

dirichy commented Jul 15, 2024

I think it is very cool to choose window by nvim-window-picker, is it possible to choose windows from both tmux and nvim by this way?
Thank you!

@aserowy aserowy added the enhancement New feature or request label Jul 16, 2024
@aserowy
Copy link
Owner

aserowy commented Jul 16, 2024

Heho,

maybe. I guess you need a way to list all current tmux windows and a way to inject those into the plugin. At first glance there is no way to do both of it, currently.

If you pr a function on our side, you are welcome.

Kind regards
Alexander

@dirichy
Copy link
Author

dirichy commented Jul 16, 2024

I tried for a while, I think it is solveable.
By the shell command “tmux list-panes” we can get all information of windows in current tmux session.
Then we can use a excutable to print Label to every pane, by “tmux send-keys”.
Finally we can use “tmux select-pane” to jump to a tmux window.

That’s my idea to accomplish this function. Do you have any more idea?
If you think this feature is good, I will try to work on it when I am not busy.

@aserowy
Copy link
Owner

aserowy commented Jul 24, 2024

Heho,

Sounds good. Give it a try.

Kind regards
Alexander

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

No branches or pull requests

2 participants