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: customization of the color changing symbol in StatusItem #3090

Closed
AndreyAkinshin opened this issue Dec 25, 2023 · 1 comment · Fixed by #3093
Closed

Feature request: customization of the color changing symbol in StatusItem #3090

AndreyAkinshin opened this issue Dec 25, 2023 · 1 comment · Fixed by #3093

Comments

@AndreyAkinshin
Copy link
Contributor

At the moment (v1.14.1, v2_develop), StatusItem allows highlighting shortcuts using the ~ symbol (e.g., ~F1~ Help). While this is a useful feature, it prevents displaying the ~ itself in the label. I want to show the current directory in the status bar with ~ as a symbol for the home directory. Unfortunately, the current text rendering logic always eliminates all the ~ symbols.

It would be nice to introduce a property that allows customizing this symbol. Thus, for my "show current directory" task, I can redefine this symbol to something else so that it's possible to display ~ in the status bar.

It should be a very simple fix to implement in both v1.14.1 and v2 (introduce one new property + update two usages). If it sounds like a reasonable feature to add, I'm ready to send PRs.

@tig
Copy link
Collaborator

tig commented Dec 25, 2023

Sweet idea. Do it!

In v2 there will be a new control called "Bar" I've just started a PR on. I'll make sure this scenario is supported there too.

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

Successfully merging a pull request may close this issue.

2 participants