Skip to content

Support grand grand scope #2773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 26, 2025
Merged

Support grand grand scope #2773

merged 3 commits into from
Jan 26, 2025

Conversation

AndreasArvidsson
Copy link
Member

Allows you to say grand multiple times. eg "take grand grand state"

Fixes #2152

Checklist

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner January 26, 2025 09:59
@@ -233,7 +233,11 @@ The modifier `"grand"` can be used to select the parent of the containing syntac
- `"take grand statement air"`
- `"take grand funk air"`

For example, the command `"take grand statement [blue] air"` will select that parent statement of the statement containing the token with a blue hat over the letter 'a'.
For example, the command `"take grand statement [blue] air"` will select the parent statement of the statement containing the token with a blue hat over the letter 'a'.
Copy link
Member

@phillco phillco Jan 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed a bit about having unique terms for 1st/2nd/3rd parent as shortcuts, but noone came obviously to mind. There is also the existing awkwardness of the second parent most likely being something like "grandparent" but that is ambiguous with the generic parent command. Historically, parent wasn't chosen as "grand" because it is long and awkward to say and we assumed most people are just looking for the first or second parent.

@phillco phillco added this pull request to the merge queue Jan 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2025
@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue Jan 26, 2025
Merged via the queue into main with commit ab072ee Jan 26, 2025
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the grandGrand branch January 26, 2025 20:52
cursorless-bot pushed a commit that referenced this pull request Jan 26, 2025
Allows you to say grand multiple times. eg `"take grand grand state"`

Fixes #2152

## Checklist

- [x] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [x] 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)
- [x] I have not broken the cheatsheet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support "grand grand <scope>"
2 participants