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

Custom window name format #14

Open
joshmedeski opened this issue Jul 5, 2023 · 5 comments
Open

Custom window name format #14

joshmedeski opened this issue Jul 5, 2023 · 5 comments

Comments

@joshmedeski
Copy link
Owner

As a user, I want to manually configure a custom layout for displaying the name and icon for a window.

Perhaps we allow a tmux style

config:
  format: "#W #I"
  • "#W" = window name
  • "#I" = icon

It would be cool to add color support too, but maybe that's for a future PR, similar to how the tmux status elements are styled.

config:
  format: "#[fg=blue,nobold]#I #[fg=white,nobold]#W"
@hqkhan
Copy link

hqkhan commented Jul 21, 2023

It would be cool to add color support too, but maybe that's for a future PR, similar to how the tmux status elements are styled.

I do agree that the first step should be to take what is currently available and port to a yaml file. Then we can iteratively improve upon it.

A question about the "color support". How would it interact with:

set -g pane-active-border-style     'fg=magenta,bg=default'
set -g pane-border-style            'fg=brightblack,bg=default'

@petobens
Copy link

Hi @joshmedeski. Great plugin! Is it possible to add a setting to show icons to the right of the window name instead of left of it? Do you want me open a new issue for this?

@joshmedeski
Copy link
Owner Author

Thanks @petobens! I'm open to a new issue with a simple feature flag to implement icons to the right.

I think this custom format feature is going to take more work, and I don't have this at the top of my list of things to do.

@petobens
Copy link

Ok! Done in #29

@worldsayshi
Copy link

worldsayshi commented Aug 4, 2024

I added a workaround in #41 (comment) that might be interesting for anyone who goes here.

My suggestion to how to solve this issue is to inverse the control and let the plugin define a variable that can then be used in the tmux config when the user defines automatic-rename-format instead of the plugin setting the automatic-rename-format option itself.

That would break the api for existing users though. Ooops.

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

No branches or pull requests

4 participants