Skip to content

Commit 5789094

Browse files
authored
Update docs on iteration range (#1881)
## 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
1 parent 0b50c4a commit 5789094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The [range](#range) within which a [scope](#scope) is valid/active. For example,
1616

1717
## Iteration scope
1818

19-
A canonical [range](#range) for a given [scope type](#scope-type) that defines a list of sibling [scopes](#scope). For example, the iteration scope for `"arg"` is an argument list. The iteration scope is used for things like `"every"`, to select all sibling scopes. This allows us to say things like `"take every arg"`, `"pre every line"`, etc.
19+
The canonical [scope](#scope-type) for a given [scope type](#scope-type) that defines the iteration range when `"every <scope>"` or eg `"first <scope>"` are issued without an explicit input range. For example, the iteration scope for `"arg"` is an argument list. Thus, when you say `"take every arg"`, you'll get every argument in the argument list containing your cursor, and `"take every arg air"` will select every argument in the argument list containing the `"air"` token. Note that the iteration scope can be ignored by giving an explicit range, eg `"take every arg air file"`, `"take every arg air past bat"`, etc.
2020

2121
## Insertion delimiter
2222

0 commit comments

Comments
 (0)