Skip to content

A Does Not Respect The End Of Wikilinks #582

Description

@uNyanda
  • Date: 2026-08-12
  • Type: Bug
  • Severity: Medium

Environment

  • OS: Linux
  • WM: Niri
  • Compositor: Wayland
  • Software version: 2.27.0

Description

The A Vim motion does not correctly position the cursor at the end of a wikilink.

In Vim, pressing A enters Insert mode at the end of the line. However, in ZenNotes, when a wikilink is the last element on the line, pressing A places the cursor before the closing ]] instead of after them.

For example:

This is a [[wikilink]]

When pressing A, the cursor should be positioned after the closing ]], but instead it is positioned before them.

Steps to reproduce

  1. Create a note containing a wikilink at the end of a line.
  2. Place the cursor on the line outside the wikilink.
  3. Press A.

Expected Behaviour

A should enter Insert mode at the actual end of the line, after the closing ]].

Actual Behaviour

A enters Insert mode before the closing ]].

Additional Notes

While reproducing the bug, I found that when the cursor is inside the wikilink, pressing A correctly places the cursor after the closing ]]. The issue only occurs when the cursor is already outside the wikilink.

Screen Recording

wikilink-a-motion-bug.gif

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