Skip to content

Commit

Permalink
Merge branch 'main' into multilineTail
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson authored Sep 18, 2024
2 parents 88a4cc7 + 5448c2e commit 36d7d17
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cursorless-talon/src/spoken_scope_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions data/fixtures/recorded/surroundingPair/changeString.yml
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 36d7d17

Please sign in to comment.