I am searching for a way to quickly open files that have dates in their file names, similar to how the ‘open daily note’ command works. I’ve attempted to find a plugin that could accomplish this task, but the only one I found (GitHub - SimplGy/obsidian-open-file-by-magic-date) is limited to opening only one file. Since I generate multiple notes each day, I need a more versatile solution. Could anyone help me locate a script or plugin that can help me achieve this?
This notes are created each day the title is changing each day so when i bind this file (Log 2023-03-01) to command like for example buttons, i can no longer open the file (Log 2023-03-02) using the same button or command.
The Natural Language Dates plugin lets you make special URLs for things like “today”. I’m not sure if it lets you make URLs that mix that with other text, but it’s worth looking into.
The documentation of the Periodic Notes plugin says it can pick up on filenames like the ones you mention, but I don’t know if that function is actually implemented yet (I haven’t tried it; also I wish the dev would only publish documentation for features that actually exist). If it is, and if your dated files are all in the same folder, that might be good enough for you.
If that feature doesn’t exist yet, you could still use Periodic Notes for at least one of your other sets of dated notes by setting the note name format to include (for example) “Activities”. You might also be able to misuse its Weekly and Monthly note features for your other notes by setting the note name format to include a day, but I’m guessing that might not work.
OK, so there have been some acitivity since the last time I visited this thread, but I would like to sum up some of the choices related to your list of requirements:
Have multiple commands related to open a new daily log, activity or journal
Easy triggering on mobile, not using hotkeys
I think my solution towards these issues would either be to:
Use Templater as suggested above to make templates for the various cases, and use it’s options to create commands out of the templates.
Assign mobile buttons to the various commands
Or another would be to enter QuickAdd into the mix, and do:
Create a Multi choice for each of your options, and then add each variant into that selection, and let that either create or open the corresponding note
Assign this Multi choice as the swipe-down choice on mobile
The variants within the Multi of QuickAdd could either be QuickAdd’s own templates, or I think they could also utilise the Templater templates/commands if you want that. The choice of this depends on how advanced your templates are.
The main thing with this post is to make you aware of the QuickAdd plugin, and it’s possibility to be used from the swipe-down command in the mobile interface. I’ve researched just a little on it, but I’m planning on making multiple templates available from that menu myself related to some of my own needs.