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

Compatibility with Folder Notes #15

Closed johnkingeu closed 8 months ago

johnkingeu commented 8 months ago

Using the folder notes plugin together with the File Order plugin produces unwanted results. This is a shame because together they could be a very powerful combination.

When the folder notes plugin is active, a note within a folder is associated with the folder as a folder note. It is hidden from the file explorer list of notes within that folder but appears when the user clicks on the folder name.

When the user selects 'Reorder items' using file order plugin, the folder note is listed alongside other notes within a folder. It is not possible to exclude this note from reordering and so whenever the order of files is changed, the name of the folder note (and therefore the folder) is also changed, with a prefix appearing, and because the folder note appears at a higher level due to the operation of the folder notes plugin, this means the order of the remaining notes may be incorrect. Unfortunately, this makes the two plugins essentially incompatible with each other.

To resolve this issue, either:

(a) the folder note needs to be detected and excluded from the list of notes presented to the user and ignored, or (b) the user needs to be able to select one (or more) of the listed notes and exclude it from the file ordering process.

The first of these two would be smoother for the user but the second is more flexible - it would have other benefits for non-file order users and possibly be easier to code.

johnkingeu commented 8 months ago

Never mind, this has been dealt with using the regex feature!