You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Type 'ctrl+i' would insert '**' in normal mode rather than go forward in note history #373
When typing ctrl+i in normal mode, the expected behavior is to go forward in note history, as shown in settings-keymap, while the actual behavior is inserting ** which should only be triggered in insert mode.
Fixed in 3310c81cb4caaf3042774e03cc3a72d78f3c82af (branch v2.13.2).
Root cause: on Linux/Windows Mod resolves to Ctrl, so the italic formatting shortcut (Mod+I) collided with the vim.historyForward binding (Ctrl+I). In the window keydown handler the inline-format shortcuts were checked before the vim jumplist, so Ctrl+I matched Mod+I first and inserted ** via the italic toggle, then returned before the history-forward handler could run. (Ctrl+O/back had no conflicting format shortcut, which is why only forward was broken. It never reproduced on macOS, where Ctrl+I ≠ Cmd+I.)
Fix: the vim jumplist check (Ctrl+O back / Ctrl+I forward) now runs ahead of the inline-format shortcuts and is gated on vim mode. So in normal/visual mode Ctrl+I goes forward in note history, while insert mode (and vim-off) still toggle italic.
Verified by driving the built app over CDP under a simulated Linux platform: pre-fix, normal-mode Ctrl+I inserted the italic markers and stayed put; post-fix it navigates forward with no **, and insert-mode Ctrl+I still italicizes. Ships in the next release (v2.13.2). Thanks for the report!
Activity
adibhanna commentedon Jul 13, 2026
Fixed in
3310c81cb4caaf3042774e03cc3a72d78f3c82af(branchv2.13.2).Root cause: on Linux/Windows
Modresolves toCtrl, so the italic formatting shortcut (Mod+I) collided with thevim.historyForwardbinding (Ctrl+I). In the window keydown handler the inline-format shortcuts were checked before the vim jumplist, soCtrl+ImatchedMod+Ifirst and inserted**via the italic toggle, then returned before the history-forward handler could run. (Ctrl+O/back had no conflicting format shortcut, which is why only forward was broken. It never reproduced on macOS, whereCtrl+I≠Cmd+I.)Fix: the vim jumplist check (
Ctrl+Oback /Ctrl+Iforward) now runs ahead of the inline-format shortcuts and is gated on vim mode. So in normal/visual modeCtrl+Igoes forward in note history, while insert mode (and vim-off) still toggle italic.Verified by driving the built app over CDP under a simulated Linux platform: pre-fix, normal-mode
Ctrl+Iinserted the italic markers and stayed put; post-fix it navigates forward with no**, and insert-modeCtrl+Istill italicizes. Ships in the next release (v2.13.2). Thanks for the report!Fix(editor): don't advertise Ctrl+I for Italic in the Vim visual-mode…
Fix(vim): Ctrl+I italicises a visual selection instead of jumping (#488)