Along with enabling “Readable line length”, I’m using the following CSS snippet to reduce line spacing & line width:
This snippet works fine, however it changes the behavior of the ‘End’ Key: now when I press ‘End’, the cursor does not go to the end of the current line as it usually does, but instead goes to the beginning of the next line. I am using this key all the time when writing and eager to find a way to fix it.
If I disable the CSS snippet, things work normally again. The problem occurs regardless of which Obsidian theme I use. I’m on PC, Windows 10, using Obsidian 1.0.3. Would anyone know how to fix this, or perhaps know of another way to control line spacing & line width without causing the cursor issue? Many thanks.
i don’t think the css is the issue. seems pretty basic. also i tried on my vault, cannot reproduce that. possibly a combination of that css snippet and a plugin?
why don’t u try disable all plugin (or simply turn on “Restricted Mode”) but keep the css snippets. if indeed that solves the issue, then u can try enabling plugin one at a time to find out what combination does that
Thanks - I tried turning on “Restricted Mode” and keep the CSS snippet on, the problem is still there. I tried also disabling community themes and use the default theme, same problem. Tried typing a new note from scratch or using an already typed note, same issue with the End Key.
Thanks so much for your help. I’ve been working in Scrivener for years and I’m looking to reproduce the line spacing and page width I had over there. So the goal is:
The reduce the height of the space between the lines to 1.2
To make the line width narrower so that there’s some blank space on either side of the text area
I tried your cm-scroller solution, but it didn’t solve the issue. However it made me realize the problem comes from the line-spacing CSS:
This is what causes the End key issue. When I remove the above CSS, the problem goes away regardless of which CSS I use for page width (cm-scroller or file-line-width). So I feel like we’re nearly there Now I’m wondering, is there a way to reduce the line spacing without causing the End key issue again? Many thanks!
Thanks Holroy. I know it’s really odd. The problem is the same on all files. Whenever I disable the CSS, the End key functions normally again. I tried creating a new vault, no plugins, only the CSS, typed a new note from scratch, same issue.
I tested it on a virtual machine, on a fresh install on Obsidian but using the same vault as the one on my local machine, the line-height CSS causes the same problem. I also tested on a new vault. Same problem.