leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
345 stars 16 forks source link

Inverse depth (bottom-up) highlighting #123

Open nickpapoutsis opened 9 months ago

nickpapoutsis commented 9 months ago

Instead of going from the outermost block of the code to the innermost block, up to the max depth setting, allow for the exact opposite where highlighting works in a bottom-up style, ie. when you put the cursor inside a block 10 "depths" in, the highlighter starts from the block of the cursor and starts highlighting outwards up to a (user selectable) max number of blocks.

That allows for code that contains blocks many levels deep to be less cluttered since highlighting starts from the block the user focuses on up to x steps outwards.

For example, working on a function 10 levels deep means that I want the function's inner blocks highlighted but all the function's parent (outer) blocks don't need to be highlighted as it only contributes to visual clutter.

leodevbro commented 9 months ago

Hello, I think you can do it pretty easily in Blockman settings.

Please search "Advanced Coloring" in Blockman page: https://github.com/leodevbro/vscode-blockman

Also you can watch the video: https://youtu.be/UsET6-kPu90

So, you can do so many combinations of coloring setup of any direction (inward, outward).

But, if you find it difficult to setup advanced coloring settings for your needs, please let me know and I will try to provide it for you.