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

Tmux's display-panes #790

Open
fedoranvar opened this issue Oct 16, 2021 · 7 comments
Open

Tmux's display-panes #790

fedoranvar opened this issue Oct 16, 2021 · 7 comments
Labels
action Issues related to actions enhancement New feature or request help wanted Extra attention is needed

Comments

@fedoranvar
Copy link

Good day to you!

Haven't found in #376 about it, so question is:

is it possible to display-panes to jump instantly to pane like tmux?
image

Thank you!

@a-kenji
Copy link
Contributor

a-kenji commented Oct 16, 2021

Hello! Thank you for taking the time reaching out.

What tmux calls panes we call tabs, so if you bind:
https://zellij.dev/documentation/keybindings-actions.html#gototab-index
You should be able to switch between them.

Also, if you use the default configuration you should be able to press ctrl-a and then a number.

@fedoranvar
Copy link
Author

fedoranvar commented Oct 16, 2021

You're right, i meant windows in TMUX. but in tmux display-panes really shows id-numbers above windows - so user could jump right into it
and sorry, i've pasted confusing screenshot, here is another one :
image

and also question:
How to keep borders, but remove name of panes or rename them?
image

Thank you!

@a-kenji a-kenji added action Issues related to actions enhancement New feature or request labels Oct 16, 2021
@imsnif
Copy link
Member

imsnif commented Oct 25, 2021

Hey, we don't yet have a way to remove the pane title (it's usually not "Pane #" but rather something set by your shell or application running inside the terminal like vim - but some shells don't do this).

About the original issue - I'm not sure I understand. Are you asking for the feature that would show the pane numbers above the panes themselves? Or a way to start Zellij focused on a specific pane/tab, or?

@a-kenji
Copy link
Contributor

a-kenji commented Oct 25, 2021

No problem, we don't have that yet.
But that would be a great feature!

How to keep borders, but remove name of panes or rename them?

The panes have a placeholder in them, for example "Pane #1", they are not the names of the panes per se, they are the title the shell, or programs inside the pane provide them.

Many shells provide a convenience functionality for setting the title of your shell.
If you use that functionality of your shell you can set it to an empty string, and that would remove the pane title for you.

@fedoranvar
Copy link
Author

fedoranvar commented Oct 26, 2021

@imsnif

About original issue, general purpose is for navigating bnetween panes by direct jumping.

example:
display-panes called - numbers (or alphabetics) appeared - i press number (or alpha) of my choice - cursor jumped to desired pane

here is exract from man tmux

display-panes [-t target-client]
                   (alias: displayp)
             Display a visible indicator of each pane shown by target-client.
             See the display-panes-time, display-panes-colour, and
             display-panes-active-colour session options.  While the indicator
             is on screen, a pane may be selected with the ‘0’ to ‘9’ keys.

@imsnif
Copy link
Member

imsnif commented Oct 27, 2021

Aha, I get it now. Thanks for the explanation! I'll put a Help Wanted on this and see if anyone wants to take it up.

@imsnif imsnif added the help wanted Extra attention is needed label Oct 27, 2021
@c02y
Copy link

c02y commented Sep 20, 2023

This is one of the tmux features I missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action Issues related to actions enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants