# Add action to select inside enclosing brackets \(\#59005\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/df35a07d138316a5e38fa75c2197208a22d2e2c3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: df35a07d138316a5e38fa75c2197208a22d2e2c3

Requested commit: df35a07d138316a5e38fa75c2197208a22d2e2c3

Commit: df35a07d138316a5e38fa75c2197208a22d2e2c3

Tree: a3bc0eeb865527ddf369644443e0e41af8fe90f1

Author: Myself

Committer: GitHub

## Message

```
Add action to select inside enclosing brackets (#59005)

## Summary
- add an editor action for selecting the contents of the innermost
enclosing bracket pair
- register the action without assigning a default key binding
- cover cursor, selection, nested bracket, no-op, and multi-cursor cases

## Tests
- cargo fmt --check
- cargo test -p editor test_select_inside_enclosing_bracket --lib
- cargo test -p editor test_move_to_enclosing_bracket --lib

Release Notes:

- Added action to select the contents enclosed by brackets
```

## Parents

- [dde7c1c07f026177338a8c1948c6591090ffba93](https://git.cafe/gitcafe/zed/commit/dde7c1c07f026177338a8c1948c6591090ffba93?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/df35a07d138316a5e38fa75c2197208a22d2e2c3?format=markdown)
