What I’m trying to do
I have a note with a bunch of lines:
2024-06-23 (21:11) - #tag1 apple
2024-06-23 (21:54) - #tag1 things
2024-06-23 (23:44) - #tag2 banana
2024-06-24 (08:29) - #tag3 random
2024-06-24 (09:40) - #tag1 content
2024-06-24 (10:23) - #tag2 stuff
So it is basically list of different tasks, each task has some unique tags, defining the category of the task.
I want to create a dynamic note, based on my main note, to filter some tasks based on tags
For example, I want to create a file with lines, containing #tag2
:
2024-06-23 (23:44) - #tag2 banana
2024-06-24 (10:23) - #tag2 stuff
I want to find some way of doing that, or to figure out a different approach to manage the tasks. Maybe split all tasks into different files? That would take a while, and I’m not sure if that would solve the problem.
Things I have tried
I have tried using dataview
plugin, here is some post related to my problem
So I have tried adding inline metadata instead of tags using :: notation:
2024-06-22 (07:11) - #sleep [action:: sleep]
But I could not actually figure out how to use these in dataview
search, it just does not extract file content, only name and other metadata of the note. For me it just returns “-” alongside the filename even without any filters.
I have also tried ![[Note]]
notation from the help page, but it is not really what I want, because even though it allows to embed certain blocks, it can’t automatically find the blocks I need.
There is also query
notation, which is so far the closest thing to what I actually want. I actually managed to embed a search result by specific tag in a file. However, the output is not supported by “Obsidian Publish” or even “Digital Garden” plugin, so I can’t view the results on a web-version. Also, the view style of search is not really great, because I want to specifically embed whole lines with matching tags, and not just navigate to a section of the other file.
What I really want?
Maybe there is just a better way to do it in general? I saw some plugins for task management, but those plugins were using a different approach, sort-of TODO-lists for a day, Planning tools, while my notes style is more like Logging different actions with a specific timestamps, where each next timestamp shows the end time of the task, with the assumption, that it started as soon as previous task ended. I create new lines to log file using hotkey combination of inserting new datetime, and describe the actions.
It worked well until I started thinking of how to analyze these data dynamically or do literally anything, for example, automatically measure the duration of the tasks(???). I can obviously just run my files through some custom python script, or move back to tracking my tasks in Excel document, when everything I just described can be solved trivially with formulas like VLOOKUP
, but I would like to have a native Obsidian solution for the such trivial tasks like filtering tasks in my log by their type.