From e53928d59dc3c636a2e306eff1ddad304802f7cd Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Sat, 9 Nov 2024 12:25:22 +0100 Subject: [PATCH] Update head/tail docs with regards to surrounding pairs --- packages/cursorless-org-docs/src/docs/user/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cursorless-org-docs/src/docs/user/README.md b/packages/cursorless-org-docs/src/docs/user/README.md index f956d0722e..4ccf841121 100644 --- a/packages/cursorless-org-docs/src/docs/user/README.md +++ b/packages/cursorless-org-docs/src/docs/user/README.md @@ -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