zed icon indicating copy to clipboard operation
zed copied to clipboard

Keymap for "Select to Enclosing Bracket"

Open ryrobes opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

Jumping between brackets is great - but often I like to use shift & select the entire bracket as well (for lisp type languages, removing a whole form, etc). So it would be great to have, in addition to "editor::MoveToEnclosingBracket", also a simple "editor::SelectToEnclosingBracket" - just as we have "SelectToWord*" etc.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

ryrobes avatar Jun 07 '24 13:06 ryrobes

Agree, VS Code has a command called editor.action.selectToBracket

vladmoroz avatar Jul 29 '24 13:07 vladmoroz

Nice, I also want that keymap.

shotanue avatar Aug 20 '24 02:08 shotanue

Me too. I frequently use this keymap :'v

diegorojasj avatar Aug 21 '24 19:08 diegorojasj

I found an alternative using editor::SelectLargerSyntaxNode. It's not the same, but you can try to use it too.

bondiano avatar Sep 12 '24 13:09 bondiano

I found an alternative using editor::SelectLargerSyntaxNode. It's not the same, but you can try to use it too.

This is awesome. This can handle the <>. In other bracket selection < and > will be treated as an OP symbol.

aurexav avatar May 13 '25 02:05 aurexav