vis icon indicating copy to clipboard operation
vis copied to clipboard

Indent guides like in Sublime

Open bzbug opened this issue 5 years ago • 4 comments

New feature: indent guides (orange for parent, red for ancestor)

170x120_ 12 12 2020 17:30

bzbug avatar Dec 12 '20 13:12 bzbug

This may not be what you asked for, but you can get something similar by using visible tab characters (:set show-tabs on):

tabs

ninewise avatar Dec 14 '20 13:12 ninewise

It's limited how much graphics you can do in the terminal, only text front and back. Sublime does all rendering in opengl so it can do alot more. If vis starts supporting a new type of client / server architecture, you could perhaps make your own frontend in opengl etc and do more fancy graphics.

erf avatar Dec 14 '20 17:12 erf

Then, maybe, it would be possible to colorize background of tabs or spaces differently? Like that:

  • Hightlight selected tabs in orange (selection is for clear demonstration only) when the cursor (yellow) is directly inside of the block: 167x115_ 18 12 2020 07:59
  • Hightlight selected tabs in red when the cursor is inside a descendant block: 156x115_ 18 12 2020 08:06

And with spaces maybe it could be one space instead of the value in tabwidth:

orange red
169x116_ 18 12 2020 08:10 162x119_ 18 12 2020 08:11

bzbug avatar Dec 18 '20 04:12 bzbug

Maybe you can use: https://github.com/erf/vis-highlight

erf avatar Dec 18 '20 14:12 erf