You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I applied this config from #595 to add a date modified frontmatter value to my notes after writing changes to them. After doing so, I may want to undo the change I just made, but pressing u once doesn't work as that seems to undo the frontmatter change, so I have to press it again.
Reproduction: Add and following the following config option in obsidian.nvim, then write to a note, watch the frontmatter value get updated, then try to undo the change by pressing u in normal mode.
Config
{
"epwalsh/obsidian.nvim",
callbacks= {
-- Runs right before writing the buffer for a note.---@paramclientobsidian.Client---@paramnoteobsidian.Note---@diagnosticdisable-next-line:unused-localpre_write_note=function(client, note)
note:add_field("Date Modified", os.date())
end,
},
},
},
🐛 Describe the bug
I applied this config from #595 to add a date modified frontmatter value to my notes after writing changes to them. After doing so, I may want to undo the change I just made, but pressing
u
once doesn't work as that seems to undo the frontmatter change, so I have to press it again.Reproduction: Add and following the following config option in obsidian.nvim, then write to a note, watch the frontmatter value get updated, then try to undo the change by pressing
u
in normal mode.Config
Environment
The text was updated successfully, but these errors were encountered: