I make heavy use of tables thanks to the amazing community plugin “Advanced Tables”
I find myself having to turn off
settings > Editor > “Readable line lenght”
many times a day, for editing tables with more space.
But for notes where I don’t edit tables I like keeping “Readable line lenght” on.
Proposed solution
What I’d like to ask it to be able to toggle this function on and off, from hotkeys.
I make heavy use of hotkeys and vim mode. And even thought the settings for Readable line lenght can be quickly accessed, it is still not as comfortable having to use the mouse every time for it.
Would really appreaciate being able to map a hotkey to it.
Thanks a lot!
PS: I couldn’t find other mentions of this request, feel free to let me know if this already exists somewhere, thanks!
Recently I faced the same problem and I was thinking about a hotkey solution to it. +1 for this. Another more general solution for this could be creating hotkeys for toggling css snippets
If anyone is using auto hot key in windows you can write a script to toggle the readable line length setting. I’ve shared mine. The only challenge is, you’d need to use window spy to edit the numbers
; Readable line toggle for ctrl+shift+L
#IfWinActive ahk_exe Obsidian.exe
^+l::
WinGetPos, , , CurrentWinWidth
CoordMode Mouse, Screen
MouseGetPos MouseXBefore, MouseYBefore
; make the window full screen if it isn't
; do this by checking if the width matches full screen width
If (CurrentWinWidth < 2560) {
Send {F11}
}
Sleep 100
; open settings
Send ^,
; Click on "Editor"
MouseClick, Left, 324, 309, 1
Sleep 100
; Click on the readable line length toggle
MouseClick, Left, 2186, 368, 1
; Close settings
Send {Esc}
; If the window was not full screen before escape from full screen
If (CurrentWinWidth < 2560) {
Send {F11}
}
; Move the mouse back to where it was before
MouseMove, %MouseXBefore%, %MouseYBefore%
return
You are correct that the placement of buttons will be affected. Which is why Window Spy is needed to figure out what numbers to insert into the mouse click locations and window size parameters
+1 for this feature. I end up needing to turn on/off the reading line length multiple times per day (mostly for editing tables). Having a hotkey for this would be super helpful!!! Please prioritize, thanks!
I would personally really love to see YAML metadata for this setting. There are some pages I will always want to see with readable line length off, like huge dataview tables, while generally I prefer readable line length on.
This is one of those features which should be relatively easy to implement but would make a huge difference in daily work → especially as a computer science student I am toggling a lot between “Readable Line Lenght” on and off when embedding code in my markdown notes.