aheze/Multiliner

Idea: Automatically determine scope?

calimarkus opened this issue · 2 comments

I just saw this:

return "Selection must be bounded by `()` or `[]`."

It'd be cool, if you could only place the cursor in a scope and then it figures out the smallest matching scope that can apply?

aheze commented

Hmm that would be nice. Maybe a while loop or something?

Actually the command already achieves what I was thinking of. You only need to put the cursor and run the command. I wrongly assumed at first that you need to select the exact selection first.

What did you think of?