helix icon indicating copy to clipboard operation
helix copied to clipboard

Add configureable statusline mode names

Open PeepNSheep opened this issue 3 years ago • 5 comments
trafficstars

I added normal-mode-name, insert-mode-name, and select-mode-name as keys in the [editor.statusline] section of the configuration file. Changing these will change the text displayed by the "mode" element of the statusline. Here you can see an example: statusline

PeepNSheep avatar Aug 03 '22 01:08 PeepNSheep

Looks good! Quick note, this would need to be added to the documentation as well book/src/configuration.md

A-Walrus avatar Aug 03 '22 08:08 A-Walrus

Looks good! Quick note, this would need to be added to the documentation as well book/src/configuration.md

Just added the documentation!

PeepNSheep avatar Aug 03 '22 17:08 PeepNSheep

Why not make it a nested config item? editor.statusline.mode.normal = "Foo"

archseer avatar Aug 04 '22 04:08 archseer

Why not make it a nested config item? editor.statusline.mode.normal = "Foo"

Just switched to that, and updated the documentation

PeepNSheep avatar Aug 04 '22 23:08 PeepNSheep

Really looking forward to this!

sbromberger avatar Aug 05 '22 10:08 sbromberger

@the-mikedavis I fixed the documentation, is there anything else I need to do?

PeepNSheep avatar Aug 13 '22 05:08 PeepNSheep

Just curious, what is the use case for this?

dead10ck avatar Aug 13 '22 13:08 dead10ck

Just curious, what is the use case for this?

reclaiming space in the statusline for me. I can also see internationalization as a use case.

sbromberger avatar Aug 13 '22 14:08 sbromberger

Why not make it a nested config item? editor.statusline.mode.normal = "Foo"

@archseer I added that and the documentation is fixed, is there anything else I need to do?

PeepNSheep avatar Aug 28 '22 03:08 PeepNSheep

@PeepNSheep - why did you close this? I was looking forward to seeing it merged.

sbromberger avatar Sep 02 '22 15:09 sbromberger

@PeepNSheep - why did you close this? I was looking forward to seeing it merged.

Whoops, my bad. I meant to convert it into a draft. In any case, I think some of the code got deleted while merging with the latest changes, so I'll fix that as soon as I can.

PeepNSheep avatar Sep 02 '22 15:09 PeepNSheep