lukasbach / obsidian-file-order

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

Add ignore pattern setting to ignore files and folder to reorder #11

Closed bcardiff closed 1 year ago

bcardiff commented 1 year ago

Fixes #7 Fixes #3

@lukasbach

The following video shows the new setting. The setting is not overridable from the modal popup. I also show how it plays with https://github.com/LostPaul/obsidian-folder-notes if the folder note name is fixed (eg: index)

https://github.com/lukasbach/obsidian-file-order/assets/459923/7490d878-bb65-42ce-9368-930b134c642c

There is an edge case that if we ignore files in the reorder it could happen that some of the new file names might clash. Maybe this is worth a warning or a check in the modal. I'm not sure.

bcardiff commented 1 year ago

Other alternatives would be to have a separate configs for folders and files. If we do that we could remove the extension of the file before checking the ignore setting and have a simpler setup scenario to ignore a specific files but not folder.

Also it could be preferred to have a single or comma list of entry names to ignore instead of regex. That might be simpler to approach than regex and might cover enough cases.

If the people interested in this can comment I can go one route or another.

lukasbach commented 1 year ago

Looks great, thank you very much for your contribution @bcardiff