joplin icon indicating copy to clipboard operation
joplin copied to clipboard

vim mode is usable only with "eng"(latin) keyboard layout

Open floppy-engineer opened this issue 2 years ago • 4 comments

The editor in VIM mode working properly (follows vim commands) only when keyboard layout is set to English. As a result vim mode is workable only on English.

Environment

Joplin version: 2.7.15 (appimage) Platform: Linux OS specifics: Manjaro, KDE, x11

Steps to reproduce

  1. set to vim mode in preferences
  2. focus on input field of markdown editor in markdown source code mode
  3. having english keyboard layout press Shift+i
  4. Ensure that the cursor change the shape and you are in insert mode - you could enter text
  5. Press ESC and exit from insert mode
  6. Switch layout to non-latin
  7. Try to enter into insert mode by pressing Shift+i.
  8. The editor is still in command mode (you can't enter text)

Describe what you expected to happen

That default shourtcuts(shift-i, ctrl-o, etc) and commands work as if keyboard layout is set to Eng

floppy-engineer avatar Jun 17 '22 15:06 floppy-engineer

We're using a library for ViM emulation in the editor. CodeMirror5 ViM emulation library.

This seems related to the following upstream issue: https://github.com/codemirror/codemirror5/issues/6771

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] avatar Jul 25 '22 16:07 github-actions[bot]

I get it. You don't support the library. But instead would it be possible to add configuration ability to the module? Like .vimrc file somewhere. It's possible to work around the behavior with vim magic)
Thanks in advance

floppy-engineer avatar Jul 25 '22 22:07 floppy-engineer

We're currently using CodeMirror5 for the editor. There is also vim emulation for CodeMirror6 (which we might eventually switch to).

The CodeMirror6 ViM emulation can be demoed here. Is the issue fixed with the CodeMirror6 version?

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

github-actions[bot] avatar Aug 26 '22 16:08 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Sep 02 '22 16:09 github-actions[bot]