Open malaybasu opened 2 months ago
Sorry to say I can't reproduce this in Obsidian 1.6.7. I followed this procedure:
The "Open trash explorer" icon then appeared as the last item in the ribbon and the two plugin commands became available. Can you share more information about your setup?
It works in Obsidian 1.6.7. It appeared in the left sidebar, and the command palette actions became available.
Then after I ran its "Open Trash" command, an extra trash button appeared in the top bar. Which wasn't there immediately after install.
It's definitely working.
Thank you for the info @Arcitec. I'm closing this issue.
Seems like the problem was there was a symbolic link in my trash folder. It was preventing the extension to load.
@malaybasu @proog Interesting. Was the symbolic link broken, or leading to a location that Flatpak Obsidian cannot reach?
Maybe the trash extension should gracefully skip files that it doesn't have permission to open.
Very interesting, that does sound like a bug. I'll try to take a look at this soon unless someone beats me to it :)
@Arcitec Not sure about broken link. I deleted the link. But this can be easily tested. I will test it and let you know.
Skipping file gracefully is a good idea.
The issue does seem to be related to broken links. Obsidian's internal file system adapter throws an error when listing the files during this call (assuming a broken symlink inside .trash
):
There's no obvious workaround to add to the plugin, so I've reported the bug on the Obsidian forum.
As for valid symlinks, it's probably a good idea to ignore them for consistency with Obsidian's own file explorer. Symlinks are currently treated as any other file and can be deleted and restored, but symlinks won't be visible after restoring them.
After installing and enabling the extension, there is no "trash" button on the ribbon and there is no "show trash explorer" in the command menu.