obsidian-tasks icon indicating copy to clipboard operation
obsidian-tasks copied to clipboard

There should be an option to put the global filter at the end

Open schemar opened this issue 4 years ago • 6 comments
trafficstars

An option to always store the global filter at the end of the description would ensure that tasks is compatible with the day planner plugin.

See also:

  • https://github.com/schemar/obsidian-tasks/discussions/146
  • https://github.com/schemar/obsidian-tasks/discussions/75
  • https://github.com/schemar/obsidian-tasks/discussions/219

schemar avatar May 26 '21 18:05 schemar

Yes...I would like this change as well. And if this fix isn't that hard, I may want to help make the change. Thank you.

ArrowTR avatar May 27 '21 01:05 ArrowTR

This seems to work for me

- [ ] Check the weekly calendar for any special meetings #task 📅 2021-06-06 ^3255080275

As long as it is before the date I think. I also created a link to the line so that in the Day Planner there is a first link back to the copied line. I've close to getting something setup using dataviewjs that I'll share for creating the copy. I'm still wrapping my head around how to work with the two together.

bikingbadger avatar Jun 03 '21 08:06 bikingbadger

It works for reading tasks. But whenever a task is written by the Tasks plugin, it writes the global filter to the beginning. This option would change it so that whenever a task is written by the plugin, the global filter would be at the end. Also when creating new tasks.

Tasks are written any time you use the modal or click a checkbox to toggle the status.

schemar avatar Jun 03 '21 18:06 schemar

So I wonder if just putting it near the end by default would be something to consider. Or is there a specific reason for keeping it at the beginning?

bikingbadger avatar Jun 06 '21 08:06 bikingbadger

Very valid comment @bikingbadger. Maybe it should just always be at the end of the description.

schemar avatar Jun 06 '21 11:06 schemar

I've close to getting something setup using dataviewjs that I'll share for creating the copy.

Is this ready to be shared? 😀 @bikingbadger

I am also using Tasks with Dataview together. In my use case, I tend to link/attach various project action notes in a project page. Each of such a project action note consists of a series of tasks that are closely related to the topic of the project action note, and it can contain fields like due date, which is the due date for the series of tasks. Within this series of tasks, there can be a due date for a specific (important) task.

With the settings above, I can use Dataview to query project action notes of interest and use Tasks to query specific tasks of interest.

I am aware of Day Planner, but I am not sure how to combine it with plugins like Tasks into my workflow. Can you share your use case of Day Planner?

wenlzhang avatar Jul 08 '21 19:07 wenlzhang