Focus region using transparency #9494
Unanswered
Mirko-von-Leipzig
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm interested in focussing on the current scope I'm in by de-emphasizing the rest of the code by fading it out. The scope can be widened or narrowed as well.
What I was thinking was:
When entering focus mode only the current scope if emphasized e.g. the current loop. You could then widen the scope by one level to include the surrounding function.
I don't know what the behaviour should be when one leaves the scope. Should it just return to single level scope? Should it keep the number of scope levels? Probably something one has to experiment with.
Emacs has a similar narrowing feature which I have not used; but looks quite clumsy since it hides the rest of the code entirely (afaiu) by creating a new buffer instead.
Beta Was this translation helpful? Give feedback.
All reactions