advanced-cursors
advanced-cursors copied to clipboard
Sidebar position isn't saved after restarting Obsidian
https://user-images.githubusercontent.com/73286100/138782853-742920a5-43c7-483d-a6d4-32ccfb272bf7.mov
Hmmm yes... I think alot of plugins have this issue. It will require saving the last position and adding it back there. Surely possible, I'll just have to figure out how
yeah, it is quite annoying with a lot of plugins, tbh :(
🥳
I just tested it, and it still doesn't work :/
Ahh I see. I get the same issue on my main vault. I think the problem is simple, will you let me know if it works in next release?
Ok, I think it's working properly now. It only tracks 'left' or 'right', so it just groups it into the main split on the corresponding side. ie. it doesn't consider groups of leaves within each side
Huh no, I still get this on my main vault... I'm not sure what's happening here, I'll try figure it out
hmm, isn't that something you could simply copy from another plugin? most of the plugins seems to have solved it, since they do not change position in any way (neighet left/right, nor leaf, nor order inside a leave)
Which plugins do this?
all of my plugins except longform and advanced cursors, actually.
Just looking at the plugins currently open in my sidebars:
- dangling links
- map of contents
- recent files
- calendar
I tried dangling links first, and it just seems to always open in the right:

I'll check out the others now
Haha same as MOC

maybe they solve it differently? since for me, they kinda stay at the left 🙃 https://user-images.githubusercontent.com/73286100/138952244-f8c1f8c1-67ba-4ae1-9f67-0106748dd057.mov
I don't think there's another way of doing it.. recent files, too

My approach is:
- When the user reloads/closes Obs, save the side that the view is on (left or right)
- When reloading and initialising the view, read the
sideto use from settings - Add it to that side
but why are all those other plugins behave properly while Advanced cursors can't remember where it was in the sidebar?
ლ(ಠ_ಠლ)╯
hahaha right? And it works on my small test vault... I'll keep trying
not sure if you did sth, but now it works?
Huh, ok? Let me know if the working persists :)
I have the same problem! It keeps returning to the same spot after every restart. I have had such a problem with a few other plugins as well but most of the times it fixes itself I am not sure what must be causing it and what could have fixed it later so could it have something to do with the way obsidian saves the workspace layout instead of it being a problem with the plugin?
Yeah, the code I'm using to save the viewSide and load it in again is pretty simple... I don't know what I could be doing differently
Another thing I would like to add is that closing the panel and then restarting obsidian makes the panel reappear, ideally there should be a setting or a command to enable the sidebar panel and closing the panel should make it not reappear on restart.
I get you, and I agree. I'll try make that possible. Can you open a separate issue for that? As this issue is still open
Alright I'll do that right away!