diff --git a/cursorless-talon/src/spoken_scope_forms.py b/cursorless-talon/src/spoken_scope_forms.py index da72d85a1e..dd4a309235 100644 --- a/cursorless-talon/src/spoken_scope_forms.py +++ b/cursorless-talon/src/spoken_scope_forms.py @@ -12,9 +12,9 @@ def init_scope_spoken_forms(graphemes_talon_list: dict[str, str]): def create_flattened_talon_list(ctx: Context, graphemes_talon_list: dict[str, str]): lists_to_merge = { "cursorless_scope_type": "simple", - "cursorless_surrounding_pair_scope_type": "surroundingPair", "cursorless_selectable_only_paired_delimiter": "surroundingPair", "cursorless_wrapper_selectable_paired_delimiter": "surroundingPair", + "cursorless_surrounding_pair_scope_type": "surroundingPair", } # If the user have no custom regex scope type, then that list is missing from the context if "user.cursorless_custom_regex_scope_type" in ctx.lists.keys(): # noqa: SIM118 diff --git a/data/fixtures/recorded/surroundingPair/changeString.yml b/data/fixtures/recorded/surroundingPair/changeString.yml new file mode 100644 index 0000000000..2ca54a6f78 --- /dev/null +++ b/data/fixtures/recorded/surroundingPair/changeString.yml @@ -0,0 +1,23 @@ +languageId: typescript +command: + version: 7 + spokenForm: change string + action: + name: clearAndSetSelection + target: + type: primitive + modifiers: + - type: containingScope + scopeType: {type: surroundingPair, delimiter: string} + usePrePhraseSnapshot: true +initialState: + documentContents: "`hello`" + selections: + - anchor: {line: 0, character: 1} + active: {line: 0, character: 1} + marks: {} +finalState: + documentContents: "" + selections: + - anchor: {line: 0, character: 0} + active: {line: 0, character: 0}