Open goyalyashpal opened 1 year ago
This is understandable in a TUI interface, but i thought to share here in hopes that maybe someone knows a solution - some way to draw two characters in same space
Unicode do has "combining" horizontal lines: (overline, double overline, low line) - but no combining vertical line i guess.
Is there a reason why tabs need indent-guides? Setting the variable editor.whitespace.characters.tab
to a visible character should have a similar effect.
I would prefer indent-guides to be only an alternative visualization of n spaces. Then I could use different characters for tabs and indent-guides.
Then I could use different characters for tabs and indent-guides.
that will solve for tab characters, but the space characters will still be shown one less times, right?
that will solve for tab characters, but the space characters will still be shown one less times, right?
Yes, this would only reduce the ambiguity.
But I realized why indent-guides are also useful for tab indented documents: Because indent-guides are also drawn for empty lines.
But I realized why indent-guides are also useful for tab indented documents: Because indent-guides are also drawn for empty lines.
one hack for that can be to show indent guides only at ending space of a tab, rather than at start of the tab.
like these:
↦
⊢
⊦
Steps
Assume:
:set whitespace.render all
oreditor.whitespace.render = "all"
:set indent-guides.render true
See that:
Screenrecord
https://user-images.githubusercontent.com/19423063/219942649-89e6ce5c-3cfb-42ca-bcb8-5477f0168c8f.mp4
External References
From VSCodium: It shows both the indentation guide, and whitespace character.
Versions