Steps to reproduce
- Type a line that is longer than the tab’s width.
- Type another line below it
- Put cursor at the start of the first line and press keycombo to place another cursor below current
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
For the cursor to appear on the next ==actual== line.
Actual result
Cursor appears on the next fake/virtual/word-wrapped line, in other words ==ON THE ARBITRARY POSITION OF THE SAME REAL LINE==. If the line/paragraph is longer than the user’s screen - it is actually impossible to use the shortcut to place the cursor on the next/previous line.
Environment
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: #1 SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 05:13:57 +0000 6.6.47-1-lts
Login status: not logged in
Insider build toggle: off
Live preview: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
- Making multiline cursors by holding Alt+Shift doesn’t have this issue (but it does occupy the most widely used key combination to change keyboard languages, and can’t be changed in the settings)
- This can be partially solved for short lines with a 4k screen by temporarily opening Obsidian in full screen to get rid of word wrap. But it’s a hacky crutch at best.
This all seem to stem from the same issue of having forced word wrap as the weird, broken and inconsistent Home/End key behavior. For some inexplicable reason, Obsidian treats the fragments of the real line in the document, created from the word wrap, as real lines, and this breaks Home/End keys, multiple cursors, moving cursor around with keyboard, and a lot of other features that i can’t name from the top of my head
Illustration: video