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

status-right includes full hostname instead of short hostname #44

Open
bwoodruff opened this issue May 2, 2020 · 6 comments
Open

status-right includes full hostname instead of short hostname #44

bwoodruff opened this issue May 2, 2020 · 6 comments

Comments

@bwoodruff
Copy link

This theme currently shows the full hostname including any domain information: #H, e.g. node.site.domain.tld
This can be quite long and if so may get cut off (see #26)
I would request that instead only the "short" hostname, without domain information be shown: #h

I thought this would be a simple fix but I tried replacing #H with #h in nord-status-content.conf and nord-status-content-no-patched-font.conf in ~/.tmux/plugins/nord-tmux/src/ and relaunched tmux... that didn't seem to do it, unfortunately. I'm not sure what more needs to be done.

@kierun
Copy link

kierun commented May 4, 2020

Did you tmux kill-server?

@arcticicestudio
Copy link
Contributor

Hi @bwoodruff 👋, thanks for your contribution 👍
This sounds like a good solution, but this might also break the expectations of other users who'd like to see the full name e.g. when working in SSH sessions.
There are more reported issues in this repository regarding the content and I guess there's no way around a refactoring of the theme to be more flexible and allow dynamic customization of the content. The proposed solution in #27 would fix the problems described in #26 and #25, but this also means there's less space for actual tabs in the middle bar.
Finding a good balance between these elements isn't that easy, but using the short hostname might be a better default.

@bwoodruff
Copy link
Author

Did you tmux kill-server?

Ah, my bad. This worked. :)

Thank you for your comments and consideration @arcticicestudio. I think #h may be the more sensible default in the balance of giving valuable information and preserving screen real estate. But that's just an opinion. :)

@kierun
Copy link

kierun commented Jun 24, 2021

Would a clever use of if-shell be useful to check if the current session is a local one (aka not ssh) or to detect if the session is via ssh? I tried messing around with it and did not get far…

This would allow to have a default for either.

@bwoodruff
Copy link
Author

Would a clever use of if-shell be useful to check if the current session is a local one (aka not ssh) or to detect if the session is via ssh? I tried messing around with it and did not get far…

This would allow to have a default for either.

That would make infinite sense to me. Would be interested to hear if you get this working.

@WendersonBarros
Copy link

WendersonBarros commented Mar 8, 2023

Replacing '#H' for '#(cut -d "." -f 1 <<< "#H")' in the 'nord-status-content...' files also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants