Tasks should support multiple files with the same name #228
Replies: 4 comments 4 replies
-
So the source note was referenced wrong for a work_project2 task. I just tried inserting the task into a file with a different name within work_project2, like this:
And now the note is being referenced correctly
|
Beta Was this translation helpful? Give feedback.
-
I actually have many project folders within Projects/, all with similar subfolder structures using filenames like _todo, _meeting, _approach, etc. So the actual repo structure is more like
For the correctly retrieved task from project 2, since its wrongly referenced note came from project 1, I decided to delete project 1's folder. This just resulted in the reference note being taken as _todo from another project. So there is some obvious name collision error happening here; like the query is ignoring the filepath when getting the reference file, yet retrieving the task itself correctly by paying attention to the content of the filepath. Now of course I can get around this issue by making my project folders like
But I would much rather adhere to a more uniform structure |
Beta Was this translation helpful? Give feedback.
-
Hey there, thank you for the long information. It is true that Tasks only supports one instance of a file name at the moment. It used to be the case for Obsidian, but apparently that restriction no longer applies. I just checked Obsidian and it links to the full path if there can be a collision. I would need to update how Tasks links to files based on this and also show the full path in case a collision is possible. This is not a high priority right now and my time is very limited already. I would be happy to get the required changes proposed by someone else, though 😋 |
Beta Was this translation helpful? Give feedback.
-
This is no longer an issue. The links to tasks work fine when there are tasks from different files with the same file name. See rhe commit 3197550, for example. Marking as released. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
I have the following project folder structure
so work_todo.md queries into each of the work_projectx/ folders for tasks using the tasks plugin. For example, for work_project1/, it uses
Current Behavior
The tasks themselves are being queried correctly, but the note source listed would only point to _todo.md from work_project1, regardless of the path I specify. Seems bizarre especially since the tasks themselves are being queried right, it's just the listed source that is wrong.
Steps to Reproduce
Context (Environment)
Possible Solution
Beta Was this translation helpful? Give feedback.
All reactions