Bracketeer icon indicating copy to clipboard operation
Bracketeer copied to clipboard

Same keyboard shortcut for quotes and brackets.

Open alvitawa opened this issue 6 years ago • 1 comments

Sometimes separate shortcuts are usefull but most of the time it is possible to infer whether brackets or quotes should be removed/changed/selected. For example if you are not inside quotes you obviously want to affect the brackets.

So a new shortcut could be added that removes surrounding quotes if you are inside quotes or surrounding brackets if you are inside brackets.

If you are inside both, i.e. ["cursor here"] you could just remove the innermost (quotes in this case).

Same for selection/changing.

alvitawa avatar Feb 09 '20 15:02 alvitawa

Hi, thanks for the suggestions. It could certainly be a little bit more easier to use. However this would require some major refactor and change of the logic, since internally parsing of quotes and brackets is handled differently.

Due to time constrains (family and other projects) I'm not able to do it now. I would like to rewrite the extensions in the future to be a little bit more contributor friendly and not such a mess. Then I can have a look into this as well (if it is even possible in some reasonable and robust way). But if you would like to dive into this I'm open to PRs. Feel free to ping me with any questions.

Pustelto avatar Feb 12 '20 12:02 Pustelto