Skip to content

Commit

Permalink
fix: erroneous title in daily note creation from template
Browse files Browse the repository at this point in the history
  • Loading branch information
zDonik1 committed Mar 16, 2024
1 parent 450c3da commit 2b5f928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Don't open picker for tags when there aren't any matches.
- Correctly replace the `{{title}}` template parameter with filename in daily notes.

## [v3.7.3](https://github.com/epwalsh/obsidian.nvim/releases/tag/v3.7.3) - 2024-03-13

Expand Down
2 changes: 1 addition & 1 deletion lua/obsidian/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ Client._daily = function(self, datetime, opts)
note = Note.from_file(path, opts.load)
else
note = Note.new(id, { alias }, { "daily-notes" }, path)
note.title = alias
note.title = id
if not opts.no_write then
self:write_note(note, { template = self.opts.daily_notes.template })
end
Expand Down

0 comments on commit 2b5f928

Please sign in to comment.