-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 total line info to statusline #649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer not to see these by default but instead associate it with a key. Like g ^g
will show Col 1 of 126; Line 2 of 97; Word 2 of 639; Byte 11 of 4373
.
Hmm, this is going to get tricky because everyone is used to a different statusline format. (I personally don't want any of these new values shown). I'd like to keep the default statusline as is, but I would accept a PR that makes this field configurable with a format string: |
Templating should work, e.g. https://docs.rs/indicatif/0.16.2/indicatif/index.html#templates |
Yeah that's what I mean by a format string. Sadly we can't use |
I think indicatif parses the string for any |
It uses a regex to parse the template, then substitutes a fixed set of keys. https://github.com/mitsuhiko/indicatif/blob/27c8cc3078b65aa2573dbe673a00471d6662698c/src/style.rs#L238-L390 |
We might be able to reuse that with some tweaking (lazy_static -> once_cell, disabling styles for now) |
We might want a temporary solution here until we support plugin. |
Closing in favour of #2434 |
No description provided.