Skip to content

[Bug] Type 'ctrl+i' would insert '**' in normal mode rather than go forward in note history #373

Closed

Description

@Fireond

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.

System: archlinux
Version: v2.13.1

Activity

  1. added
    bug
    enhancement
    on Jul 11, 2026
  2. adibhanna commented on Jul 13, 2026

    @adibhanna
    Contributor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions