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

Feature request: vim like jump list to jump between panes across windows/sessions #3258

Closed
poetaman opened this issue Jul 11, 2022 · 5 comments

Comments

@poetaman
Copy link

poetaman commented Jul 11, 2022

Issue description

Tmux last-pane or select-pane -l do not jump to the real last pane if last pane was in another window or session.

While maybe it is possible to define a user option for every pane and record such information, it would still be limited, as it won't be a moving list of panes user visited.

What is being requested? A Vim-style jump list feature, so user can move between panes with ease just like they navigate within Vim with C-o and C-i, or open jump list to choose to jump to (based on visit-age).

This will supercharge navigation in tmux as users will be able to jump back and forth between older visited panes and younger visited panes. IMO with just 2 keybindings that user could specify with such a feature, it could become a preferred way of navigating as it does not require using mouse or remembering session name, window name/ window number.

An additional setting if such a feature is implemented would be the depth of the jump list.

@poetaman poetaman changed the title Feature request: vim like jump list to jump panes across windows/sessions Feature request: vim like jump list to jump between panes across windows/sessions Jul 11, 2022
@nicm
Copy link
Member

nicm commented Jul 19, 2022

It isn't really any use describing features in terms of what vim does because I don't use it.

I don't know if a global last-pane list would be terribly useful, it seems more useful to go back to where the session was like tmux does. If you want to jump to a particular window or pane you can already do it with choose mode.

@poetaman
Copy link
Author

poetaman commented Jul 19, 2022

It is useful because user doesn't need to think name of session, and window number to get to where they want to. For people with amazing memory it might look like its unnecessary, having a global last-pane list would be beneficial for those with not so amazing memory especially while multi-tasking, or while burning the midnight oil. It would also reduce mental tedium for those with amazing memory, as they just need to press one of two key-bindings to move back and forth, saving energy in brain for other tasks.

Ok, will explain any vim feature analogy going forward.

@mohkale
Copy link

mohkale commented Aug 22, 2022

Huh, I actually wanted something like this a while back and wrote this and rebound ' to it. Lets you mark a pane and then jump back to it from whatever pane you're currently in. Hitting the binding again while in the marked pane will jump you back to what pane you were in before jumping to the marked pane. Sadly can only work on one pane at a time but a nice hack that could be repurposed for something like you're asking for I think.

@nicm
Copy link
Member

nicm commented Oct 4, 2022

I think to do this I would add a global last pane list and then a new mode like choose-window but which lists the panes by order of use. I've adde to todo list.

@nicm nicm closed this as completed Oct 4, 2022
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants