Skip to content

Docs reference deprecated left/right grammar for surrounding pairs #2625

Closed
@phillco

Description

@phillco

Per discussion with @AndreasArvidsson, these have been esoteric for a while since you can use previous or next, and were explicitly deprecated in #2457. Neither pokey or Andreas used them and they were not referenced in any videos.

However the documentation still refers to them:

https://www.cursorless.org/docs/#ambiguous-delimiters----etc

Position your cursor directly next to the delimiter (or just use the delimiter as a mark), and then prefix the name of the delimiter pair with "left" or "right" to force cursorless to expand the selection to the left or right, respectively.

For example:

"take left quad" (with your cursor adjacent to a quote)
"take left pair green double" (with your cursor anywhere)
"take inside right quad"
If your cursor / mark is between two delimiters (not adjacent to one), then saying either "left" or "right" will cause cursorless to just expand to the nearest delimiters on either side, without trying to determine whether they are opening or closing delimiters.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions