Add information about token (#849)

* [issue-814] added information about token

* Tweaks

Co-authored-by: “minh” <“minh.nguyen19997@hotmail.com”>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
This commit is contained in:
Minh Nguyen 2022-07-19 00:28:52 +10:00 committed by GitHub
parent ca1aa9d998
commit 5cc286d550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,6 +211,14 @@ The word file can be used to expand the target to refer to the entire file.
For example, `"take file [blue] air"` selects the file including the token containing letter 'a' with a blue hat. For example, `"take file [blue] air"` selects the file including the token containing letter 'a' with a blue hat.
##### `"token"`
The `"token"` modifier expands its input to the nearest containing token. This modifier is often used without a mark, either to select the token adjacent to your cursor or to expand your selection to the nearest containing token range. For example:
- `"copy token"`
- `"take token"`
- `"chuck token"`
##### Surrounding pair ##### Surrounding pair
Cursorless has support for expanding the selection to the nearest containing paired delimiter, eg the surrounding parentheses. Cursorless has support for expanding the selection to the nearest containing paired delimiter, eg the surrounding parentheses.