What I’m trying to do
(on mobile, android).
Make a dataview query that can be inserted into a page via a template, that will list any files named with variations of the base file name. -1, -2, etc appended to the base name. Or since I’m not consistent I may end up with filename.1.md, file name.2.md. Sloppy, I know.
Example: lets say I am working on today’s daily note. I use YYYY-MM-DD-ddd for my format so I’d want to list all files that were named 2025-05-07-Wed.md, 2025-05-07-Wed-1.md, 2025-05-07.2.md, etc. This is my admittedly sloppy idea of file versioning, so showing file last modified date/time would be helpful too.
Keep track of file copies made while editing, so I can try out chunks of code, have a backup, etc. At the end or some time in the future I sort them by date in file manager, then review and decide what to.delete or archlve.
Things I have tried
- Searched the web for someone asking how to do this, hoping to read the replies they got.
- Told AI what I want to do.
- Looked at a dataview info page for insight.
- Refined my question and asked AI again, based on it’s earlier answers. This time it said to incorporate regex into my query. " plaintext
-regex(file.name, “^{{date)}. *”)
| sort by modification time ". I don’t know regex or dataview so here I am.