j-palindrome / obsidian-time-ruler

A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).
MIT License
228 stars 8 forks source link

Compatibility of task rescheduling with blockid #32

Closed Jeromandres closed 1 year ago

Jeromandres commented 1 year ago

Context of use I am setting blockid to tasks to be able to create links to the the given tasks. I use it to pull linked to tasks within a Kanban, and be able to move tasks (links to tasks indeed) between columns

Please refer to https://help.obsidian.md/Linking+notes+and+files/Internal+links#Link+to+a+block+in+a+note. Reference to blocks are automatically created with a alphanumerical index prefixed by caret (^)

Describe the bug When a scheduled task is moved from one timing to another, the ending block id (^followed by a reference given by Obsidian) is moved backward in the sequence of data in the task line. This breaks the links to the block, as the reference shall be ending the block, which is not the case in the current implementation of TimeRuler I guess.

To Reproduce Steps to reproduce the behavior:

  1. Create a reference to a task (to the one-line block consisting in the task)
  2. Set a Scheduled Date and Starting Time for the task
  3. Launch command: Copy Block Link: Copy embed to current block or heading -- this creates the reference (caret followed by Obsidian given alphanumerical code)
  4. Paste the link to the task (one-line block indeed) wherever you want
  5. Reschedule the task in Time Ruler to another timing and/ or day
  6. Come back to the pasted task embedded link
  7. See it broken

Nota:

Expected behavior Keep block reference unchanged in tasks(events likely though not tested), by letting it at end of task/ event, without ending spaces

Obsidian Version:

Additional context Add any other context about the problem here.

j-palindrome commented 1 year ago

Thanks for the issue, I'll add support for block linking.

j-palindrome commented 1 year ago

Block references are supported in 1.2.0