onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.83k stars 282 forks source link

Extension: Text Decoration API #3189

Open bryphe opened 3 years ago

bryphe commented 3 years ago

An API that Onivim currently doesn't support is VSCode's text decoration API: https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions

This is needed to support several extensions, including:

The work required will be:

It seems that some of the extensions require SVG rendering in the text decoration API (at least, bracket pair colorizer does - I suspect wallaby may as well) - so it may require building out the remaining primitives in Revery: https://github.com/revery-ui/revery/blob/18eb60e6d5b99adebcf5912d05c447e83a0f7e0b/src/SVG/Revery_SVG.re

yunti commented 3 years ago

I do love those coloured brackets 😀 can’t seem to live without them these days.

jgr commented 3 years ago

Gitlens is how I get by without fugitive's :Gblame when I'm in VSCode, I'd love to see it supported.

manaskarekar commented 3 years ago

This would also enable one of my favorite features that most editors seem to miss, a highlight plugin that let's you highlight different words/sequences with different colors, persistently.

The best example of this was for jedit http://plugins.jedit.org/plugins/?Highlight