codimd icon indicating copy to clipboard operation
codimd copied to clipboard

vim editing mode, can't press escape.

Open dessalines opened this issue 5 years ago • 5 comments
trafficstars

When pressing escape in vim edit mode, it follows the browser escape. How do I exit mode?

dessalines avatar Nov 29 '19 18:11 dessalines

Hi @dessalines , do you have any browser vim extension installed? It might be one reason that causes this.

Yukaii avatar Nov 30 '19 01:11 Yukaii

Nope, just regular old firefox, which treats the escape key as losing focus from the browser window.

dessalines avatar Nov 30 '19 02:11 dessalines

Echoing this bug, using flatpak firefox on PopOS.

Couldn't use vim-mode as escape goes to browser escape. Disabled Vimium-C extension for the page, escape now works as expected. Might be nice to have Ctrl-C also go to escape, though I suspect that might significantly increase the complexity of your vim-bindings feature if allowing users to customize their hackmd vim bindings.

thor314 avatar Jun 21 '23 22:06 thor314