Replies: 1 comment 1 reply
-
Hey @jmrussell, you could accomplish this by configuring a callbacks = {
-- Runs right before writing the buffer for a note.
---@param client obsidian.Client
---@param note obsidian.Note
---@diagnostic disable-next-line: unused-local
pre_write_note = function(client, note)
note:add_field("modified", os.date())
end,
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way with the plugin (or another recommended, obsidian friendly way) to record the timestamp a note was created or last modified?
I'm new to the whole obsidian space but I've used nvim for a long time -- I think I could just write an autocmd that writes that information somewhere within the note, but I'd be interested if there's a better solution. Please let me know if I missed a similar discussion, somewhere, I did look but didn't find much.
Really enjoying this plugin, thanks for the great work!
Beta Was this translation helpful? Give feedback.
All reactions