Open NeoFantom opened 4 years ago
Hi @NeoFantom,
You could try to remap keys a bit.
{ "key": "tab", "command": "-text-tables.gotoNextCell", "when": "tableMode" },
{ "key": "tab", "command": "text-tables.gotoNextCell", "when": "tableMode && !suggestWidgetVisible" },
{ "key": "enter", "command": "-text-tables.nextRow", "when": "tableMode" },
{ "key": "enter", "command": "text-tables.nextRow", "when": "tableMode && !suggestWidgetVisible" }
These lines remove Tab
and Enter
bindings that extension brings and map them back with additional when
clause. After you apply this settings in your keybindings file, Tab
and Enter
will have default behavior when suggestions list is visible.
Perfect solution! Can't stress enough how grateful I am!
Glad that it helped you. I guess I will make changes into keybinding of extension so that this behavior will be default.
Sometimes I need to use word suggestions provided by vscode. But I have to commit the suggested word with![cannotCommitSuggestion](https://user-images.githubusercontent.com/38828722/64485711-4e0ce880-d256-11e9-8268-f7701bcedce4.gif)
tab
orenter
. Problem is: when I'm in table mode, bothtab
andenter
has cell-ralated functions which overrides the default suggestion-commiting. How to make this work for me? Below is a gif of what happens after I pressenter
: