vim movement command gj can not move past the transcluded link.
gj is identical to j except it accounts for line wraps. Some of us noremap j gj for this reason.
gj is effectively equivalent to using the arrow keys to navigate.
Steps to reproduce
enable vim mode
use Live Preview
create the following document
![[#foo]]
- ![[#foo]]
# foo
NOTE: for some reason, copy and pasting this snippet from Discourse into Obsidian elides the line breaks. Go into source mode to ensure the document is structured properly
starting at the top line, attempt to navigate down one line at a time using gj. Type gj repeatedly. Same with the down arrow.
Expected result
gj should be able to move past the transcluded wikilink in the bullet point just as it does on the transcluded wikilink that isn’t in a bullet.
Actual result
gj can not move past the bullet point with the transcluded wikilink. j of course still works.
The same result happens with the down arrow.
Environment
SYSTEM INFO:
Obsidian version: v0.13.22
Installer version: v0.13.19
Operating system: Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 20.6.0
Login status: logged in
Catalyst license: vip
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Safe mode: on
RECOMMENDATIONS:
none
Since updating to 13.30 I have a similar problem with ‘gj’ in vim mode, only it does not move past level one headings. This is with either live preview or source view toggled. Transcluded links and bullets, other level headings, work fine. ‘gj’ works in legacy mode.
Debug Info
SYSTEM INFO:
Obsidian version: v0.13.30
Installer version: v0.12.19
Operating system: #1 SMP Mon Feb 7 14:40:20 UTC 2022 (77d9d02) 5.3.18-150300.59.49-default
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Safe mode: off
Plugins installed: 0
Plugins enabled: 0
RECOMMENDATIONS:
none
I had the same issue with H1 and was able to fix by reducing the size of my headings. It seems like there is a bug computing logical lines, likely upstream cc @WhiteNoise
This issue appears to be fixed in the latest insider build (v0.15.1).
I just tried again, and it is not fixed in 0.15.1 and 0.15.2. gj and the down arrow get stuck on transclusions in bullets and the repro steps I listed in the original post (above) are still valid. Did you mean to reply to this ticket or did you try the repro steps yourself?
For me it was the gj getting stuck on a large h1/h2 header where the cursor would simply go to the end of the line and then not move. This is what is fixed for me in v0.15.x. Sorry for not being clear.
Regarding bullets… for me gj works ok for top level multi-line bullets but it does not work for any sub-bullets.
For me gj worked as expected for a while, even with transclusions in bullets (or maybe I just didn’t put any transclusions in bullets over the past few months???) so I thought this got fixed.