Hacker News new | past | comments | ask | show | jobs | submit login

Colors are surprisingly helpful!

Vim+Python might be more popular than Emacs+Lisp, so here's my rainbow mode plugin to help with Tabs: https://github.com/csdvrx/indent-rainbow




Upvote to the "skinny guides" (thin vertical lines) feature linked from your TODO: https://github.com/preservim/vim-indent-guides#screenshots

Even better if you make it single pixel wide, something I like from VSCode. This way, it works nicely with rainbow colors in dark mode too.

And while we're at it, rainbow color the related opening and closing brackets too: https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-...

EDIT: applying the grayscale color to the background would be another direction, it also looks nice: https://marketplace.visualstudio.com/items?itemName=leodevbr...


> Even better if you make it single pixel wide, something I like from VSCode. This way, it works nicely with rainbow colors in dark mode too.

I could, but on top of my head, this would require using ASCII blocks characters for the 1 pixel vertical lines, which would break your regular copy paste (ex: shift + mouse) if not using vi visual mode (not a big fan personally).

My current solution uses the background color of regular spaces, so you can copy/paste without any issue, and without having to strip characters from your copy paste buffer (like with wl-copy / wl-paste)

> EDIT: applying the grayscale color to the background would be another direction, it also looks nice:

Indeed, and this could also be made more reliable by using the vt52 underline toggle, and using different colors/grayscales for the underline: it wouldn't break the copy/paste, but you would be missing the vertical lines, so it wouldn't be exactly a block :(

Otherwise it'd have to use sixels: you could do nice things like rounded angles, but this would restrict your choices of terminal.

Anyway, lmk if you need any help to setup either. I'm a bit busy rn but I should be able to provide you at least some suggestions on how to do it for your specific usecase, with minimal negative side effects (like breaking copy-paste :)


I don’t find colors that helpful. A little goes a long way, and it’s easy to go overboard IMO.


Cool! I like the monochrome gradient variant!


I like colors ... except when I don't and I've found black and white to be helpful for concentration!

So my vim theme has 2 modes: color and monochrome (based on bold/underline/italics)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: