I thought first, cherrypicking would help, but you want to retain the history with the original dates as well. I’m not sure that is even possible.
BTW I too have decided to simply use the existing obsidian-git plugin. It is working, and I can use it in recent-notes. One thing is missing: I want a notification when obsidian-git is committing a change. Do you know how is that possible?
its easy, u just subscribe to the obsidian-git:head-change event emitted by the git plugin. (for typescript, first define the interfaces in some module, if you need help im here)
did u manage to get your feature working (besides this)?
Nice, I was looking for something like that, thanks. I have to figure out how to subscribe to that event.
Otherwise, well, I am still working on the functionality but I know now how to get the last commit time for a note. I simply use
this.app.plugins.getPlugin("obsidian-git").gitManager.log(file.path,true,1)
and fill a local cache with the dates.
The stuff I’m still working on is, when to refresh that cache.
leave your discord if you want, i can dm you there, so we dont clutter here
discord.gg ne3kWNvm
[email protected]
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.