Skip to content

Commit e700ce2

Browse files
Add action to select new targets (#2707)
Adds a new selection while preserving existing ones `"append <target>"` replaces `"take this and <target>"` You can also use `append pre` and `append post` to add a cursor before or after the given target (rather than selecting that target), while keeping your current selections unchanged. (Previously you could do something like `pre this and <target>` but this would also reduce your current selection to a cursor before the current target.) ## 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 --------- Co-authored-by: Phil Cohen <[email protected]>
1 parent 8c64c03 commit e700ce2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/spoken_forms.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
"NOTE FOR USERS": "Please don't edit this json file; see https://www.cursorless.org/docs/user/customization",
33
"actions.csv": {
44
"simple_action": {
5+
"append post": "addSelectionAfter",
6+
"append pre": "addSelectionBefore",
7+
"append": "addSelection",
58
"bottom": "scrollToBottom",
6-
"break": "breakLine",
79
"break point": "toggleLineBreakpoint",
10+
"break": "breakLine",
811
"carve": "cutToClipboard",
912
"center": "scrollToCenter",
1013
"change": "clearAndSetSelection",
@@ -22,8 +25,8 @@
2225
"extract": "extractVariable",
2326
"float": "insertEmptyLineAfter",
2427
"fold": "foldRegion",
25-
"follow": "followLink",
2628
"follow split": "followLinkAside",
29+
"follow": "followLink",
2730
"give": "deselect",
2831
"highlight": "highlight",
2932
"hover": "showHover",
@@ -39,8 +42,8 @@
3942
"reference": "showReferences",
4043
"rename": "rename",
4144
"reverse": "reverseTargets",
42-
"scout": "findInDocument",
4345
"scout all": "findInWorkspace",
46+
"scout": "findInDocument",
4447
"shuffle": "randomizeTargets",
4548
"snippet make": "generateSnippet",
4649
"sort": "sortTargets",

0 commit comments

Comments
 (0)