-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iteration scope for markdown items (#2135)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] 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) - [ ] I have not broken the cheatsheet
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
.../cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/markdown/changeEveryItem.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
languageId: markdown | ||
command: | ||
version: 6 | ||
spokenForm: change every item | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: collectionItem} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
ddd eee: | ||
- aaa | ||
- bbb | ||
- ccc | ||
fff ggg: | ||
- hhh | ||
- iii | ||
selections: | ||
- anchor: {line: 4, character: 5} | ||
active: {line: 4, character: 5} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
ddd eee: | ||
- | ||
- | ||
- | ||
fff ggg: | ||
- hhh | ||
- iii | ||
selections: | ||
- anchor: {line: 2, character: 2} | ||
active: {line: 2, character: 2} | ||
- anchor: {line: 3, character: 2} | ||
active: {line: 3, character: 2} | ||
- anchor: {line: 4, character: 2} | ||
active: {line: 4, character: 2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ | |
(#trim-end! @_.domain) | ||
(#insertion-delimiter! @collectionItem "\n") | ||
) | ||
|
||
(list) @collectionItem.iteration |