farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
259 stars 22 forks source link

[FR] rules based on frontmatter fields #25

Open andrewcrook opened 2 years ago

andrewcrook commented 2 years ago
image

other possible scenarios

crazymedguy commented 2 years ago

This would be a great approach to using the DB folder plugin

isle9 commented 2 years ago

This would be a great approach to using the DB folder plugin

Yeah, I can't add filters based on tags because the db note gets moved.

It would be great if dataview fields were also included, since I use those instead.

ashishbhateja commented 1 year ago

I am also looking forward to this enhancement. Any update on this request?

ArneNostitz commented 1 year ago

Also would really love if inline fields would work as trigger

prashant2402 commented 1 year ago
  • add type for frontmatter
  • use a front-matter field name
  • use regex to test value of field
image

other possible scenarios

  • option for field not found
  • field without value

I have now created a PR with a simple frontmatter property check feature. Tested locally and works well. You can use multiple rules if you want to match an array of frontmatter property values. Screenshot 2023-05-27 112259