Replies: 1 comment
-
For reference, this is what I used in vim: https://github.com/junegunn/limelight.vim |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Atom Editor has an addon called Focus Mode (not to be confused with Zen Mode from VSCode).
In Focus Mode the current scope (paragraph, loop, function and so on) is normally visible, the other code is dimmed.
https://github.com/davidleghorn/atom-focus-mode
This should be easily done with tree-sitter. The most interesting function is the scope focus mode. But the Atom addon is limited. I think it could be nice to change the level of highlighting like to show only the current if block or while loop, or the current block plus one level above, or the whole function.
I made some mockup examples with VSCode to show what I mean with the level of highlighting (this is part of the Helix code)
only the for() loop
the match
the whole function
Beta Was this translation helpful? Give feedback.
All reactions