vnotex / vnotex/vnote

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

Open
#947 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
13k
Forks
1.3k
Avg merge
14h 3m
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with VNote's vim-mode keyboard handling and reproduce the issue using the provided xmodmap commands on Ubuntu with i3. Trace how the mode interprets the remapped keys, then verify that logical Escape and Caps Lock behavior follows the user's mapping rather than the original key positions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, vim
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.