lukasbach / obsidian-file-order

Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
MIT License
65 stars 2 forks source link

Add option to change context menu "reorder"'s executing folder target #20

Open jiewangjs opened 5 months ago

jiewangjs commented 5 months ago

Hi, thanks for such a nice plugin. Right now, when right click on a, say, folder in the explorer, and click on the "reorder items" menu, it means reordering items within the current folder. But I feel adding an option to allow the items being reordered are the ones that is siblings to this folder within the same parent folder is no less important and convenient. Especially when there are many folders within its parent folder, right clicking on the inner folder causing reordering to take place right on itself makes more sense. I reckon the modification wouldn't be too hard, just changing some path to its parent folder path might work. Thanks!

lukasbach commented 4 months ago

Hm, the change wouldn't be difficult, but I'm also not sure how most people would expect this to work in this case. The plugin already triggers reorder on siblings if you click on the reorder option when right-clicked on a non-folder item instead of a folder, so you will already get the behavior you suggest when you trigger the reorder from a file instead of a folder. But my expectation so far was that, triggering a reorder on a folder should apply to the contents to that folder. Maybe I'll look into making this an option in the plugin settings to change that.