-
Notifications
You must be signed in to change notification settings - Fork 648
Description
I'm unable to create wiki page references in many contexts.
FWIW, this has been an issue for at least a month, but I haven't had time to report it until now. (In case that timetable helps you identify the problem.)
1. If I attempt to make the reference within text, with one space on both sides of the caret/cursor, the double brackets appear on the correct line, where the caret was, but the spaces have been relocated into the space where the reference would be, and also no dropdown appears to let me search and select from my files. Example:
some text, before ref
some[[ ]]text, after ref
2. If I make the reference after text, then the closing double brackets jump to the subsequent line — the caret jumps to that line too, into column 1 — and no file-search dropdown appears. Note that in the example below, there is a space following (to the right of) "before ref"; I've attempted to make the reference when the caret was positioned after that space, in column 23. In the output, the space was relocated to occur following the opening brackets.
some text, before ref
some text, after ref[[
]]
3. This happens even if there are many spaces separating the preceding text from the location of the attempted reference. In the following example, I've places an "x" on the line of the "before ref" text just to visually show the presence of 10 spaces. I then deleted the "x", placed the caret where the "x" had been and then used the hotkey to make a reference. As in the previous example, all 10 spaces were relocated to the right of the opening brackets
some text, before ref x
some text, after ref[[
]]
4. I see similar behavior if I try to make the reference within an item of an ordered or unordered list. Here are examples of the output:
1.[[
]]
-[[
]]
5. It even happens if I make a reference on a fresh line, with the caret positioned to the right of a single space. Output:
[[
]]
All of the above behavior occurs regardless of whether I'm using a hotkey or right-click popup menu to make a reference.
Making a reference works fine in a fresh line with no content or spaces at all.
I'm on Ubuntu 24.04. Thanks so much!