erykwalder / quoth

MIT License
41 stars 1 forks source link

[Feature Request] - embed from multiple files #11

Open rapatel0 opened 2 years ago

rapatel0 commented 2 years ago

For case where you have multiple files with the same structure, it would be nice to aggreagate across multiple files like a query.

Example with 3 files together.

2022-01-31
- Nothing cool up here
- something cool below
  - Things are awesome
- something unrelated
- more unrelated
2022-02-01
- Nothing cool up here
- something cool below
  - Things are awesome2
- something unrelated
- more unrelated
2022-02-03
- Nothing cool up here
- something cool below
  - Things are awesome3
- something unrelated
- more unrelated
path: 
  - [[2022-01-31#-something cool below]]
  - [[2022-02-01#-something cool below]]
  - [[2022-02-03#-something cool below]]
display: embedded
join: "- "

would render as

  - Things are awesome
  - Things are awesome2
  - Things are awesome3
erykwalder commented 2 years ago

I thought you might bring this up 😄.

I'm not sure yet if this is something on the roadmap. Definitely a lot of the assumptions in the code as of now are based around one file per embed. It raises some questions about how to handle multiple files with some of the other embed options. How would show: author, title behave? Or having ranges that are present in some files but not others?

As I'm working on things, I'll have to keep an eye out for whether or not the assumption about one file per embed is a necessity or not.

rapatel0 commented 2 years ago

no worries. I can wrap it in a templater for loop for a little bit so no rush