- Implement Use current selection as the search pattern

- Move Up and Down in suggestion modal
This commit is contained in:
jasonwilliams 2024-01-03 22:15:28 +00:00
parent b1d9836799
commit 76adc88164
2 changed files with 19 additions and 0 deletions

View File

@ -146,6 +146,11 @@
"command": "-editor.action.triggerSuggest",
"when": "true"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile",
"when": "true"
},
{
"key": "down",
"command": "-selectNextCodeAction",
@ -165,6 +170,16 @@
"key": "ctrl+p",
"command": "selectPrevCodeAction",
"when": "codeActionMenuVisible"
},
{
"key": "ctrl+n",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+p",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
],
"configuration": {

View File

@ -68,6 +68,10 @@ export const actions: Action[] = [
enterSearchMode(helixState);
}),
parseKeysExact(['*'], [Mode.Normal], (_) => {
vscode.commands.executeCommand('actions.findWithSelection');
}),
// existing
parseKeysExact(
[KeyMap.Actions.InsertMode],