vnotex / vnote

A pleasant note-taking platform in native C++.
https://app.vnote.fun
GNU Lesser General Public License v3.0
11.81k stars 1.21k forks source link

VNote vim-mode doesn't follow the swapped ESC and Capslock on Ubuntu with i3 #947

Open pduy opened 5 years ago

pduy commented 5 years ago

OS Version (操作系统): Linux

VNote Version (Help - About VNote - Version: )(VNote版本): 2.2

Symptoms (表现):

I swapped ESC and Caps Lock on my system through xmodmap, particularly:

xmodmap -e "clear lock"                             
xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock"
xmodmap -e "keycode 66 = Escape NoSymbol Escape"    

So now my ESC would be Caps Lock and my Caps Lock would be ESC.

But in VNote, when using vim-mode, it seems to still follow the old order. As a consequence, I could only exit Insert mode by pressing the ESC key (which is now Caps Lock on my system and will capitalize all the letters).

How to Repro (如何复现): Just swap the keys using the command above and try vim-mode in VNote 2.2.

tamlok commented 5 years ago

Will take a look! I map capslock to ctrl and it works.

BTW, you could use ctrl-] to esc.

pduy commented 5 years ago

@tamlok Thank you. Ctrl + [ works, but yeah it feels not familiar coz I am used to Caps Lock too much.

Just for your information, I swapped them on a Gnome-based DE using gnome-tweak-tool and it did work. But lately I switched to another windows manager (i3) so I have to switch via the command lines I shared, then it didn't work anymore, but only in VNote, not in the other applications.

nimarb commented 4 years ago

Would also love to be able to remap the Esc within the vim mode to e.g. jj.

tamlok commented 4 years ago

@nimarb A more advanced Vim mode is coming!