We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14e0427 commit 17f832aCopy full SHA for 17f832a
CHANGELOG.md
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
19
### Fixed
20
21
+- `ObsidianRename` can be used to move notes.
22
- Fixed an edge case with collecting backlinks.
23
- Fixed typo in `ObsidianPasteImg`'s command description
24
- Fixed the case when `opts.attachments` is `nil`.
lua/obsidian/commands/rename.lua
@@ -97,8 +97,8 @@ return function(client, data)
97
new_note_path = (dirname / new_note_id):with_suffix ".md"
98
end
99
100
- if new_note_id == cur_note_id then
101
- log.warn "New note ID is the same, doing nothing"
+ if new_note_path == cur_note_path then
+ log.warn "New note ID and path are unchanged, doing nothing"
102
return
103
104
0 commit comments