franciskafieh / obsidian-list-modified

🪨 The advanced and adaptive changelog for Obsidian. Links all modified files meeting certain criteria to a timed (daily, weekly, monthly) note.
96 stars 7 forks source link

Allow using glob pattern to exclude folders #39

Closed dsebastien closed 2 years ago

dsebastien commented 2 years ago

Currently, it seems that the full folder path must be provided. It would be interesting to use glob patterns, or at least a wildcard symbol at the end of a path to ignore it as well as all its children:

Folder 01
  Folder 01-001
    File A
  Folder 01-002
    File B
Folder 02
  File C
Folder 03
  Folder 03-001
    Folder 03-001-001
      File D

To exclude files A-D, I would like to be able to do write this exclusion rule: Folder 01\**,Folder 02,Folder 03\**

franciskafieh commented 2 years ago

Argh! I knew I was forgetting something... Need to change the implementation a little. It's harder than I thought it'd be... I'll try to get it done soon, but I currently have an English essay I really need to finish...

franciskafieh commented 2 years ago

P.S. It shouldn't need to have a wildcard (*). It should ignore all sub-folders by default, so in your example, ignoring Folder 01 should automatically ignore Folder 01-001 and Folder 01-002

dsebastien commented 2 years ago

Take your time, no pressure. Thanks a lot for the cool plugin! :)

franciskafieh commented 2 years ago

Sorry for the long wait. I was just writing something and I realized I should just be able to check if the path to the file startsWith any of the ignored paths :facepalm:

I don't know how such simple solutions fly over my head

franciskafieh commented 2 years ago

Also, would you mind if I use your codeblock directory structure in the README? The one I'm currently using is impossible to read... I forgot that markdown messes up whitespace formatting

franciskafieh commented 2 years ago

Should be fixed in version 1.3.1. Please re-open the issue if I missed something!

franciskafieh commented 2 years ago

I messed up the regex, try 1.3.2 :)

Also, I went ahead and changed the README

franciskafieh commented 2 years ago

Nevermind. There's an urgent bug I need to fix. Deleting the latest release for now. Will release a new one in a little!

franciskafieh commented 2 years ago

Fourth time's the charm :sob: https://github.com/franciskafieh/obsidian-list-modified/releases/tag/1.3.3

dsebastien commented 2 years ago

Cool, thank you🙏