-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict key binding context to reduce Tab key conflict #1015
Comments
Not possible for now. VS Code sorts key bindings and dynamically chooses only one to dispatch. If there were a fallback or hook mechanism, we probably wouldn't have to write so many ugly See: |
It looks like writing custom |
We've known it from dealing with VSCodeVim (a Vim emulator). But a critical problem is race condition. As far as I'm aware, there will be a higher (seemingly medium) risk of mismatch between prediction and reality, if we don't intercept input to do analysis. |
takumii.markdowntable
The extension hijacks tab so other extensions that use the tab to accept auto-complete/auto-correct would not run. It is very annoying to see a completed/corrected version of a word or phrase but clicking tab just inserts spaces in a word. |
Do you mean "Inline Suggestion"? |
yes, including CoPilot. But there are many spelling extensions and a tab is a popular keystroke to accept suggestions. |
May I know which ones? You can also follow VS Code's guide to trace the key binding resolution. I'm a bit confused here. "Inline Suggestion" is still a proposed feature. VS Code and its partners can ship extensions that invoke proposed APIs, whilst others may call them only during debug. |
What exactly do these two do?
Removing the keybinding for them fixes the issue but I'm unsure what that breaks with Markdown All in One. I want to update it's default |
They are used when you want to indent/outdent a list item. You can see it in the second GIF here https://github.com/yzhang-gh/vscode-markdown#list-editing |
Is there some |
Currently we cannot. There is an ongoing PR #1075 dealing with it. Not sure when it will be released, but we will give you an update when it happens. |
Rock on. Thanks! |
It has been available in the pre-release version. |
Proposal
Currently, both this extension and Markdown Table have keybindings for
tab
. The behaviour of each is not incompatible, but the keybinding for this extension is suppressing the one from Markdown Table.The
tab
keybinding provided by the other extension allows easier navigation through tables, and should not conflict with the indentation helper provided by this extension. Is it possible to allow both keybindings to run, or is there a way to fallback to the Markdown Table'smarkdowntable.nextCell
command if this extension's tab key would otherwise have no effect?References
An issue has already been raised takumisoft68/vscode-markdown-table#18
The text was updated successfully, but these errors were encountered: