Skip to content

Commit 4ea3bb6

Browse files
Changed order surrounding pair lists were combined for spoken scope forms (#2658)
I have a on purpose conflict where I have `string: doubleQuotes` pair and `string: string` scope. This allows me to do `string wrap` that will do double quotes, but `take string` should be all strings not just double quotes. This worked fine before the dfa optimization where we flattened the scope types in #2628 Just rearranging the lists so the one with scope types has higher priority than the list of wrappers fixes this. ## Checklist - [x] 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
1 parent 9aa9952 commit 4ea3bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spoken_scope_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ def init_scope_spoken_forms(graphemes_talon_list: dict[str, str]):
1212
def create_flattened_talon_list(ctx: Context, graphemes_talon_list: dict[str, str]):
1313
lists_to_merge = {
1414
"cursorless_scope_type": "simple",
15-
"cursorless_surrounding_pair_scope_type": "surroundingPair",
1615
"cursorless_selectable_only_paired_delimiter": "surroundingPair",
1716
"cursorless_wrapper_selectable_paired_delimiter": "surroundingPair",
17+
"cursorless_surrounding_pair_scope_type": "surroundingPair",
1818
}
1919
# If the user have no custom regex scope type, then that list is missing from the context
2020
if "user.cursorless_custom_regex_scope_type" in ctx.lists.keys(): # noqa: SIM118

0 commit comments

Comments
 (0)