Had to change this to var(--size-4-4); to get the top level headers gap to look right in my theme but other than that it looks really impressive! Thanks for sharing.
Create a file eg. outline.css and paste this example into it. Then save the file in your vaults .obsidian/snippets folder. Then in your settings under Appearance - CSS Snippets, you need to enable the snippet to apply it.
For me the bullet threading does not seem to work. I’ve also tried with a new vault without any other themes/plugins activated. I saved the code as described an enabled it. I used LF linebreaks and UTF-8.
I am using Obsidian 1.0.3 on Windows if that helps.
I’m on windows 10 and it works ok for me. Only thing I can think of is your theme might be overriding it? If you can, post a screenshot of your outline panel so we can see what is showing.
Yeah that does not look right. The only thing I changed was the line I posted above as the lines were not lining up for me, so you can try that. Also restart Obsidian if you have not already. Otherwise delete the file and recreate it making sure to use ctrl+shift+v to paste it in (code copied from the forum will not format properly with normal ctrl+v pasting).
Been playing around with this some more and I just noticed that in my theme Blue Topaz it still shows a bit of the drop down arrow? Tried this in 10 different themes as well as the default theme and it works great in all of them except for ITS Theme which is completely messed up and, like I said Blue Topaz which looks good other than a bit of the drop down arrow is still showing (Have not been able to get rid of that).
Thank you for the advice. Unfortunately, still no bullet threading is shown for me.
I took the following steps:
Open Obsidian Sandbox vault (Help → Sandbox vault)
Go to Settings → Appearance → CSS snippets and open the folder
Create a new file called outline.css
Open the file with VS Code
Copy the snippet from your post, paste it with Ctrl+Shift+V and save the file
Go back to Obsidian → Appearance and enable the snippet outline
This did not change anything for me. I tried both light and dark theme as well as live mode and read mode.
I then installed Blue Topaz and tried it again with light and dark theme as well as live mode and read mode without success:
I don’t even see anything messed up, as if the snippet is not enabled.
Did you enable anything else is the settings? Maybe you could try the steps above as well to see if it still works for you in a new/different vault.
Apparently I misunderstood what this snippet was for. I was under the impression that bullet threading would work for any list whereas this snippet is for the outline view (on the left panel) only.
In the outline view it works great! Thank you for your help.
Do you know if something similar is possible for a list within a note?
sorry, but it can’t until the version of electron update to 21+ officially .there is no hierarchy in the dom tree of editor area, so i can’t get the preceding node without :has selector. this selector is only supported in electron 21+. so currently it only effect in outline panel
Pretty sure obsidian is now officially updated to electron 21? At least, I’ve been using the has: selector in snippets for the last month or so, and it’s been working perfectly. (And I would love to have bullet threading in obsidian as demo’d, it’s something I really miss from logseq. But the CSS magic is a bit beyond my basic capabilities…)
hello!
everyday i check if there is already a bullet threading plugin lol
the only reason I haven’t moved entirely from logseq to obsidian is bullet threading
I use manymany bullets and get lost without it
does that snippet works? I
Although I have made several attempts, I have come to realize that the task is more challenging than anticipated and currently beyond my capabilities.Using :has() selector will cause serious performance issue