Skip to content

Commit 1fcb776

Browse files
pokeypre-commit-ci[bot]AndreasArvidsson
authored
Make surrounding pair docs clearer (#1287)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Arvidsson <[email protected]>
1 parent 2dccefb commit 1fcb776

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/user/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,17 @@ Saying `"every paint"` would select `foo.bar` and `baz|bongo`.
311311

312312
##### Surrounding pair
313313

314-
Cursorless has support for expanding the selection to the nearest containing paired delimiter, eg the surrounding parentheses.
314+
Cursorless has support for expanding the selection to the nearest containing paired delimiter, eg the surrounding parentheses, curly brackets, etc.
315315

316316
- `"take round"` expands selection to include containing parentheses `(` and `)`
317-
- `"take inside round"` does the same, but excludes the parentheses themselves
317+
- `"take curly"` expands selection to include containing braces `{` and `}`
318+
- `"take box"` expands selection to include containing brackets `[` and `]`. See [paired delimiters](#paired-delimiters) for other possible surrounding pairs.
319+
- `"take inside round"` is the same as `"take round"`, but excludes the parentheses themselves
318320
- `"take bound round"` selects only the parentheses
319321
- `"take pair"` expands to include the nearest containing pair of any kind
320322
- `"take bound"` selects the nearest containing paired delimiters themselves of any kind
321323
- `"take inside"` selects until the nearest containing paired delimiters of any kind, but doesn't include the delimiters themselves
322-
- `"take box air"` selects the square brackets containing the token with a hat over the `a`.
324+
- `"take round air"` selects the parentheses containing the token with a hat over the `a`.
323325

324326
See [paired delimiters](#paired-delimiters) for a list of possible surrounding pairs.
325327

0 commit comments

Comments
 (0)