Skip to content

Commit

Permalink
Fix wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Jan 15, 2024
1 parent 8e65c5e commit fa6adc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/cursorless-vscode/src/keyboard/TokenTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ type MiscValue =
| "makeRange"
| "makeList"
| "forward"
| "backward"
| "wrap"; // TODO: move wrap somewhere out of misc
| "backward";

/**
* Maps from token type used in parser to the type of values that the token type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getTokenTypeKeyMaps(
"action",
simpleKeyboardActionNames,
),
wrap: config.getTokenKeyMap("wrap", "misc", ["wrap"]),
wrap: config.getTokenKeyMap("wrap", "action", ["wrap"]),

// misc config section
makeRange: config.getTokenKeyMap("makeRange", "misc", ["makeRange"]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"ac": "copyToClipboard",
"ax": "cutToClipboard",
"ap": "pasteFromClipboard",
"ad": "followLink"
"ad": "followLink",
"aw": "wrap"
},
"cursorless.experimental.keyboard.modal.keybindings.color": {
"d": "default",
Expand All @@ -61,8 +62,7 @@
"fx": "combineColorAndShape",
"fk": "makeRange",
"fa": "makeList",
"-": "backward",
"aw": "wrap"
"-": "backward"
},
"cursorless.experimental.keyboard.modal.keybindings.modifier": {
"n": "nextPrev",
Expand Down

0 comments on commit fa6adc0

Please sign in to comment.