- 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:
When pressing A, the cursor should be positioned after the closing ]], but instead it is positioned before them.
Steps to reproduce
- Create a note containing a wikilink at the end of a line.
- Place the cursor on the line outside the wikilink.
- 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

Environment
Description
The
AVim motion does not correctly position the cursor at the end of a wikilink.In Vim, pressing
Aenters Insert mode at the end of the line. However, in ZenNotes, when a wikilink is the last element on the line, pressingAplaces the cursor before the closing]]instead of after them.For example:
When pressing
A, the cursor should be positioned after the closing]], but instead it is positioned before them.Steps to reproduce
A.Expected Behaviour
Ashould enter Insert mode at the actual end of the line, after the closing]].Actual Behaviour
Aenters Insert mode before the closing]].Additional Notes
While reproducing the bug, I found that when the cursor is inside the wikilink, pressing
Acorrectly places the cursor after the closing]]. The issue only occurs when the cursor is already outside the wikilink.Screen Recording