Closed ktakanopy closed 8 months ago
Are you just trying to disable the shortcuts, as opposed to assigning another key binding to these commands? Are you adding the preferences to a clean keyboard shortcut configuration (press "Restore to Defaults" in the regular settings editor) or to the default configuration that JL pre-populates? Disabling the bindings seems to work for me either way.
If you're starting from the keyboard shortcuts that JL pre-populates, you need to find the relevant bindings in the pre-populated list and add "disabled": "true"
rather than add the whole binding again at the end, as the pre-populated setting usually overrides added settings at the end. I usually set key bindings in a clean key binding settings file to avoid this hassle.
{
"shortcuts": [
{
"command": "notebook:change-cell-to-code",
"keys": [
"Accel 1"
],
"selector": ".jp-NotebookPanel[data-jp-vim-mode='true'] .jp-Notebook.jp-mod-editMode",
"args": {},
"disabled": "true"
}
]
}
Inability to disable the default keybinding when you try to assign another binding is a known upstream issue: https://github.com/jupyterlab/jupyterlab/issues/15038.
I'll close this for now since there wasn't a response. If you're still experiencing this issue after modifying or adding the keyboard shortcut settings per https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/75#issuecomment-1751765432, please reopen with additional details or open a new issue.
As mentioned above, the bug where the default keybinding can't be disabled when you try to assign another binding is being tracked upstream at https://github.com/jupyterlab/jupyterlab/issues/15038.
Description
Tried on jupyter-lab vim extension version: 0.15.1
I'd like to remove the change-cell-to-code, change-cell-to-raw and change-cell-to-markdown shortcuts. But I can't. I tried to put this on the user config.
Reproduce
Go to advanced settings, try to override using the above json.
Expected behavior
The shortcut should be removed.
Context
jupyter labextension list
:results from
uname -a
: