Obsidian Integration: Change date and time when modified on Morgen
under review
A
Alan
Enhance the existing Obsidian integration with Morgen by enabling automatic updates to the modification date and time whenever a note is edited through Morgen. This feature ensures that the metadata within Obsidian accurately reflects the latest changes made via Morgen, maintaining consistency and improving the reliability of note tracking.
Key Features:
Automatic Timestamp Update: Whenever a note is modified using Morgen, the corresponding modification date and time in Obsidian are automatically updated to reflect the change. Like ⏳ 2024-09-25 or a link like [[timestamp-with-hour-and-date]]
Seamless Synchronization: Ensures that both Morgen and Obsidian remain in sync regarding the latest edits, preventing discrepancies in note histories.
User Configuration: Provide settings that allow users to enable or disable this automatic update feature based on their preferences.
Benefits:
Accurate Tracking: Maintains precise records of when and where notes are modified, enhancing the ability to track changes over time.
Improved Workflow: Streamlines the user experience by reducing the need for manual updates, allowing users to focus more on content creation and less on metadata management.
Consistency Across Platforms: Ensures that all integrations reflect the most recent modifications, fostering a reliable and trustworthy note-taking environment.
Use Case: A user edits a note in Morgen to update project details. With this feature enabled, the modification date and time within Obsidian automatically update to match the changes made in Morgen. This ensures that when the user later reviews the note in Obsidian, the metadata accurately represents the latest edit, providing clear and up-to-date information.
Danny Hatcher
under review
Danny Hatcher
Unless I am misunderstanding this is already available. When Morgen edits a file in Obsidian, the modified date and time in Obsidian is recognized by default, just like any other edit.
If you query for the default metadata in Obsidian through something like dataview, the modified time of a file updates with all edits including the ones from Morgen.
Is there something I am missing here or can I close this request?
M
Máté
Danny Hatcher if I understand it correctly on ly the changed due date is synced back. Unfortunately Tasks plugin doesn't handle time, only date, but Obsidian day planner plugin (https://github.com/ivan-lednev/obsidian-day-planner) uses a clever workaround, maybe that should be used here too to sync back scheduled/due time to Obsidian.
Danny Hatcher
Máté: Ah, so you are looking for a due time on the tasks, not updated modified time for the file?
M
Máté
Danny Hatcher it was Alan posting the original request, but based on his example I think he is looking for a bi-directional sync between task dates and times, so no matter if the task was changed in Obsidian or Morgen, both should remain in sync.
Obsidian tasks can already handle dates but no date+time, hence my suggestion for the solution of day planner in my previous comment.
In general, I think it would make more sense to combine this idea with the scheduled dates suggestion (https://morgen.canny.io/feature-requests/p/obsidian-integration-scheduled-dates) since fundamentally due dates are meant to be deadlines, and scheduled date and time the dedicated time for doing the task in the terminology of Tasks plugin.
So in detail:
- due dates shall be displayed in Morgen like they are today (as a 'full day event', non-blocking)
- once they have time blocking: the task should be a time blocking scheduled task in Morgen and should have the scheduled date and time synced with Obsidian
eg.
- [ ] 08:00 - 10:00 Morning routine 📅 2024-10-27 ⏳ 2024-10-26
this task should be visible in Morgen as a due task reminder on the 27. 'full day event 'and a time blocking task on the 25. 8:00-10:00
I modeled this situation in the screenshot attached
D
Daniel
Máté One issue regarding the sync: Morgen allows the same task to be scheduled multiple times, so keeping this in sync with Obsidian would be impossible, unless we find a satisfying way to store a list of start and end dates+times for a task. So we are left with 2 Options:
- The Obsidian Community agrees on a standard way to store a list of start and end dates+times (although I can't think of a suitable format off the top of my head..)
- Morgen disables the possibility to schedule a task multiple times for the Obsidian integration, which would make it possible for Morgen to sync the scheduled date and time (perhaps the format could be configured in the integration settings).
Honestly, I think option 2 is what most people would want, as it would allow for powerfull integration with a lot of community plugins out of the box, with no further configuration required.
EDIT (Option 3): Another way the sync of the scheduled date/time could work, would be this: The first scheduled time/date across all not-complete work sessions of a given task syncs back to the obsidian task. If the final work session is completed, the scheduled date stays unchanged. I wrote my thoughts in more detail here: https://morgen.canny.io/feature-requests/p/obsidian-integration-scheduled-dates