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

add configurable / theme-able statusline separator string #3175

Merged
merged 6 commits into from
Jul 26, 2022
Merged

add configurable / theme-able statusline separator string #3175

merged 6 commits into from
Jul 26, 2022

Conversation

sbromberger
Copy link
Contributor

@sbromberger sbromberger commented Jul 24, 2022

This PR adds a configurable and themable statusline element called "separator" that can be used to provide visual separation of elements in the statusline. Like the spacer element in #3165, multiple / consecutive separators may be specified.

The PR adds a "separator" configuration key to [editor.statusline], a "separator" element to be used in left, right, and center, and a ui.statusline.separator key for use by themes.

@sbromberger sbromberger changed the title add configurable / themable statusline separator string add configurable / theme-able statusline separator string Jul 24, 2022
helix-view/src/editor.rs Outdated Show resolved Hide resolved
@archseer archseer merged commit 846a6b6 into helix-editor:master Jul 26, 2022
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
…or#3175)

* add configurable separator element to statusline

* themable separator

* clippy fixes

* changed default separator to │

* doc updates
@luetage
Copy link
Contributor

luetage commented Jan 9, 2023

@sbromberger I have a hard time understanding why the separator is theme‐able.

  • I have found no themes which are applying special colors to the separator
  • While the separator foreground/background colors can be adjusted, this only seems to work for the active statusline. The inactive statusline will show the separator colors of the active statusline, which looks buggy.

It only adds complication. It can be fixed by customizing the themes and setting fg and bg to an empty string for the separator, but this shouldn’t be needed.

@sbromberger
Copy link
Contributor Author

@luetage this PR was merged ~5 months ago. I would suggest that any objection/reversion be proposed in a separate issue/PR.

@luetage
Copy link
Contributor

luetage commented Jan 9, 2023

Alright, fair enough. Gonna take a look at it.

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

Successfully merging this pull request may close these issues.

3 participants