Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cursorless-talon/src/cheatsheet/sections/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_modifiers():
"variations": [
{
"spokenForm": complex_modifiers["extendThroughStartOf"],
"description": "Extend through start of line",
"description": "Extend through start of line/pair",
},
{
"spokenForm": f"{complex_modifiers['extendThroughStartOf']} <modifier>",
Expand All @@ -78,7 +78,7 @@ def get_modifiers():
"variations": [
{
"spokenForm": complex_modifiers["extendThroughEndOf"],
"description": "Extend through end of line",
"description": "Extend through end of line/pair",
},
{
"spokenForm": f"{complex_modifiers['extendThroughEndOf']} <modifier>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@
"variations": [
{
"spokenForm": "tail",
"description": "Extend through end of line"
"description": "Extend through end of line/pair"
},
{
"spokenForm": "tail <modifier>",
Expand All @@ -810,7 +810,7 @@
"variations": [
{
"spokenForm": "head",
"description": "Extend through start of line"
"description": "Extend through start of line/pair"
},
{
"spokenForm": "head <modifier>",
Expand Down
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 (eg 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
Loading