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] Add Options for Hiding Pane ID #4

Open
jrock2004 opened this issue Jan 11, 2025 · 2 comments
Open

[Feature Request] Add Options for Hiding Pane ID #4

jrock2004 opened this issue Jan 11, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jrock2004
Copy link

In the left pane I would think it would be cool to have a setting to show or hide the pane ID on the left. I could also see it to allow the user to configure that to in the order they want it.

image
@Kristijan
Copy link
Owner

Currently, the #{pane_id} is what ties all this together, so it's required and must exist in the first position. Everything after the pane_id can be customised. See https://github.com/Kristijan/tmux-fzf-pane-switch?tab=readme-ov-file#tmux-list-panes-format

In saying that, there might be a way I can keep an array of pane_id's and then match on the rest of the contents. Let me see what I can come up with.

@Kristijan Kristijan added the enhancement New feature or request label Jan 15, 2025
@Kristijan Kristijan self-assigned this Jan 15, 2025
@Kristijan
Copy link
Owner

This wasn't as difficult as initially thought, as fzf provides a --with-nth option that can hide columns in the window, but keep it in the returned output.

@jrock2004 are you willing to do some testing with the changes on branch hide_pane_id?

You'll need to set set -g @fzf_pane_switch_list-panes-format "session_name window_name pane_title pane_current_command" in your ~/.tmux.conf, as I've kept the default to show the pane_id.

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