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

Ruler bar style configuration #56

Open
antonok-edm opened this issue Jun 4, 2022 · 0 comments
Open

Ruler bar style configuration #56

antonok-edm opened this issue Jun 4, 2022 · 0 comments

Comments

@antonok-edm
Copy link

antonok-edm commented Jun 4, 2022

It'd be really cool if it was possible to customize the style of the ruler bar in streampager's configuration. Changing background/foreground colors would be a good start, perhaps extended terminal attributes like underline/bold/italic could also be supported.

Currently the bar's default style is hardcoded with AnsiColor::Silver as the background and AnsiColor::Black as the foreground. In a lot of dark terminal themes, that silver color is very bright and stands out significantly compared to, say, code with syntax highlighting.

edit: just noticed #47, which mentions color customization as well. It sounds like a config DSL system has already been mostly sorted out in the process of supporting custom keymaps.

Considerations:

Alternatively, something as simple as this in the existing TOML config could be fine to begin with:

[ruler.style.normal]
background = "#555555"
foreground = "15"

[ruler.style.information]
# ...
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

1 participant