kirito41dd / obsidian-hugo-publish

write blog in obsidian, pubulish to hugo site.
Other
37 stars 0 forks source link

add option to not delete any file when syncing #3

Open fredleger opened 2 months ago

fredleger commented 2 months ago

Having to define patterns to avoid deleting files seems a tedious task. How about letting the user specify which one shoudl be deleted (so reversing the option) ?

kirito41dd commented 1 month ago

You can use js regex described in this tag https://github.com/kirito41dd/obsidian-hugo-publish/releases/tag/1.0.6

fredleger commented 1 month ago

yes but listing all patterns to ignore is tedious when you just want the sync to keep evrything ... IMHO the reverse logic is more suitable (list what you allow to be deleted). At least in my use case

kirito41dd commented 1 month ago

use .* to match all