Skip to content

Commit

Permalink
Update head/tail docs with regards to surrounding pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Nov 9, 2024
1 parent 4362f67 commit e53928d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cursorless-org-docs/src/docs/user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ The modifiers `"head"` and `"tail"` can be used to expand a target through the b
- `"take head air"`: selects the mark through to start of the line
- `"take tail air"`: selects the mark through to the end of the line

When inside a single line surrounding pair(parentheses, brackets, etc) the head/tail modifier will only expand to the interior of that pair instead of the whole line. You can explicitly say `"head line"` or `"tail line"` to get the line behavior.

When followed by a modifier, they will expand their input to the start or end of the given modifier range. For example:

- `"take head funk"`: select from the cursor the start of the containing function
Expand Down

0 comments on commit e53928d

Please sign in to comment.