Skip to content

Double brackets on macOS doesn`t be recognized - no link is inserted #514

Closed

Description

@ryanthara

In version 2.19.0 on macOS the insertion of two opening brackets doesn´t lead to a link. Instead of this, the cursor is jumping before the auto closed bracket pair.

Activity

  1. adibhanna commented on Jul 30, 2026

    @adibhanna
    Contributor

    Found it and fixed it. Thanks @ryanthara, this report was the first sign of a collision that has been biting every German-family Mac layout since 2.19.0.

    What happened: 2.19.0 added a "hop across inline markers" shortcut, bound by default to Alt+[ and Alt+]. On a Mac with a German (or Austrian/Swiss) layout, those are exactly the keystrokes that type the brackets: [ is Option+5, ] is Option+6. So the editor read your second bracket as the shortcut, moved the cursor, and swallowed the keystroke. That is precisely the "cursor jumping before the auto closed bracket pair" you described. The first bracket always worked because with nothing on the line to hop across, the shortcut stood down and let the key through; the failure only began once the auto-closed pair existed, which made it feel random.

    The fix (in the next release): on macOS the hops now default to Ctrl+, and Ctrl+. (those keys carry < and >, matching the hop direction). Windows and Linux keep Alt+[ / Alt+], where AltGr layouts never collided because AltGr arrives as Ctrl+Alt. Both hops stay rebindable under Settings → Keymaps.

    A bonus fix landed with it, for every layout: typing [[ now opens the note picker immediately. Before, the picker waited for the first letter of your query, because the bracket auto-closing step was invisible to the autocomplete trigger.

    Until the release ships, you can fix 2.19.0 yourself in ten seconds: Settings → Keymaps → rebind "Hop past next marker" and "Hop before previous marker" to anything that is not an Option chord (Ctrl+. and Ctrl+, work well). Bracket typing comes back immediately.

    Verified against a simulated German layout in the real build: Option+5 twice now produces [[ with the picker open, typing filters it, and Enter inserts the link.

  2. ryanthara commented on Jul 31, 2026

    @ryanthara
    Author

    Wow. As fast as you found, fixed and explained it to us, I didn't found the time to implement the fix before the next update.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions