Statusline improvements #9979
Unanswered
ibrahimqasim
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think that the statusline could be improved to make it more configurable and flexible.
Currently, we have various statusline elements, e.g. position, total line numbers, line endings, etc. Each of these output a string with of the form
value
, e.g.123
. Notice the surrounding spaces. Furthermore, some of the elements, such as selection count, output1 sel
or2 sels
. Additionally, if you have multiple related components next to each other, e.g. position components such as line number, column number, total lines, etc., those would all end up with spacing in between, e.g.1:2 12
.The statusline is configured by specifying the elements in the left, center and right arrays. I believe an improved approach would be the following:
<row_number>
, column is<column_number>
etc.right = ["<row_number>", "<column_number>"]
right = [" ", "<row_number>", ":", "<column_number>", " "]
An additional advantage of this is it allows for much more customization. E.g. instead of
1 sel
, a custom character can be used to represent selection, or a whole word, etc., as per the users preference.Another thought based on this is that these values could be used elsewhere as well. I think it would be interesting to have multirow statuslines, or statuslines at the top of the editor, or to the right, etc. The main task for the developers would then be to decide which values should be exposed. Customization can be left to the users.
Would love to hear what everyone else thinks!
Beta Was this translation helpful? Give feedback.
All reactions