silverbullet icon indicating copy to clipboard operation
silverbullet copied to clipboard

Clean up empty folders on bulk rename

Open v411e opened this issue 2 years ago • 1 comments

I renamed some of my pages (e.g. "🎒 Packinglists/abc" → "Packinglists/abc") using the bulk rename command (which is really cool). Silverbullet currently does not delete the old "🎒 Packinglists" folder. This leads to many abandoned, empty folders in my workspace. It would be cool, if Silverbullet would tidy up after itself when renaming pages or if there was a cleanup empty folders command. However this is not a big problem and might be out of scope.

v411e avatar Nov 12 '23 16:11 v411e

Alright, yeah this makes sense. What can happen is a file delete (which would be part of a rename) checks if it's the only file left in the folder, and deletes it if so. The question is if people would always be comfortable with that, or if it should be a setting.

zefhemel avatar Nov 13 '23 12:11 zefhemel