Skip to content

Commit

Permalink
Merge pull request #202 from tshino/update-suggest-keys
Browse files Browse the repository at this point in the history
Support new suggestion related keys
  • Loading branch information
tshino authored Feb 4, 2023
2 parents 023fd30 + 78ef7b3 commit 92fe572
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the Keyboard Macro Bata extension will be documented in t
### [Unreleased]
- Update
- Added a tooltip on the `REC` mark on the status bar to be clear. [#197](https://github.com/tshino/vscode-kb-macro/issues/197)
- Added support for new suggestion related keys. [#202](https://github.com/tshino/vscode-kb-macro/pull/202)
- Updated default keybindings wrappers based on vscode 1.75.0. [#201](https://github.com/tshino/vscode-kb-macro/pull/201)
- Updated keymap wrapper for Atom Keymap (v3.3.0).

Expand Down
4 changes: 4 additions & 0 deletions generator/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
[ "editor.action.inlineSuggest.commit", "side-effect" ],
[ "editor.action.inlineSuggest.hide", "side-effect" ],
[ "editor.action.inlineSuggest.trigger", "side-effect" ],
[ "editor.action.inlineSuggest.undo", "side-effect" ],
[ "editor.action.inlineSuggest.acceptNextWord", "side-effect" ],

[ "editor.action.triggerSuggest", "side-effect" ],
[ "focusSuggestion", "side-effect" ],
[ "hideSuggestWidget", "side-effect" ],
[ "insertNextSuggestion", "side-effect" ],
[ "insertPrevSuggestion", "side-effect" ],
Expand All @@ -63,6 +66,7 @@
[ "leaveSnippet", "side-effect" ],
[ "editor.action.insertSnippet", "side-effect" ],
[ "editor.action.showSnippets", "side-effect" ],
[ "editor.action.surroundWithSnippet", "side-effect" ],
[ "jumpToNextSnippetPlaceholder", "side-effect" ],
[ "jumpToPrevSnippetPlaceholder", "side-effect" ]
],
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2954,7 +2954,8 @@
"mac": "cmd+right",
"command": "kb-macro.wrap",
"args": {
"command": "editor.action.inlineSuggest.acceptNextWord"
"command": "editor.action.inlineSuggest.acceptNextWord",
"record": "side-effect"
},
"when": "kb-macro.active && inlineSuggestionVisible && !editorReadonly"
},
Expand Down Expand Up @@ -3003,7 +3004,8 @@
"mac": "cmd+left",
"command": "kb-macro.wrap",
"args": {
"command": "editor.action.inlineSuggest.undo"
"command": "editor.action.inlineSuggest.undo",
"record": "side-effect"
},
"when": "kb-macro.active && canUndoInlineSuggestion && !editorReadonly"
},
Expand Down Expand Up @@ -4391,7 +4393,8 @@
"mac": "cmd+i",
"command": "kb-macro.wrap",
"args": {
"command": "focusSuggestion"
"command": "focusSuggestion",
"record": "side-effect"
},
"when": "kb-macro.active && suggestWidgetVisible && textInputFocus && !config.editor.suggest.selectQuickSuggestions && !suggestWidgetHasFocusedSuggestion"
},
Expand All @@ -4418,7 +4421,8 @@
"key": "ctrl+space",
"command": "kb-macro.wrap",
"args": {
"command": "focusSuggestion"
"command": "focusSuggestion",
"record": "side-effect"
},
"when": "kb-macro.active && suggestWidgetVisible && textInputFocus && !config.editor.suggest.selectQuickSuggestions && !suggestWidgetHasFocusedSuggestion"
},
Expand Down

0 comments on commit 92fe572

Please sign in to comment.