Home / GitHub Page

Desktop app - vim keyboard mode remap escape?

Hello, I would like to know if there is an easy way to change the escape key when using the desktop app builtin editor? I noticed that this feature was added due to a user request in november, and I have to say that the whole package is already pretty impressive.
I always configure my vi emulations such that I can use the umlaut ö key as escape, and I’d love to do the same here, instead of using an external editor for sheets. If there is no easy way, I’d appreciate a pointer to the relevant source code, and try to fork from there.
Best wishes, and thank you for creating this software, I’m ready to finally retire onenote😀

I don’t think we can do much about it in Joplin.

We use ace as the editor. However, the react-native package is brace. So any questions regarding the vim mode should be directed to those 2 dev teams. If they have a way to do what you want, we might be able to get it working in Joplin.
But maybe Shane who added that featutre has an idea.

2 Likes

Alright, guess I’ll use an external editor then. Still worth making the switch from onenote.
I don’t have enough time to dedicate to this right now, maybe I’ll get around
to look into it next week.

Is there an overview somewhere of the Vim keys and commands that are eventually implemented for the Ace editor? I’ve only found (links to) explanations of how the standard editor mode works on this forum. On my search I made this list:

Additions will be appreciated.

Actually I was looking for a facility to make tabs and newlines visible, because I had created a mess of tabs and spaces in a code block. I’m afraid Ace doesn’t support that. So I guess I have to turn to my external editor for those matters.

@pastra98 Its seems there is no way to save it for now so you will have to type it on every launch, but you can remap using imap

:imap jj <Esc>

Hope this will help others :slight_smile:

If you need professional editor support, maybe, you can try the very popular full platform editor vscode, which includes vim keyboard emulation,and very good support for markdown (through plugin). I recently wrote a plugin to simplify the process of using vscode as an external editor.

1 Like