obsidian-clipper icon indicating copy to clipboard operation
obsidian-clipper copied to clipboard

Error: File already exists

Open trustin opened this issue 1 year ago • 7 comments

Hi! Thanks a lot for creating this plugin first of all. 🙇

When I clip something when there's no target note created, it creates a new daily/weekly note and adds the clip there. However, if I clip some other thing again, it fails with the following error:

plugin:obsidian-clipper:341
Failed to create file: 'Periodic notes/Weekly notes/2023Q2W20.md' Error: File already exists.
    at t.<anonymous> (app.js:1:966983)
    at app.js:1:235927
    at Object.next (app.js:1:236032)
    at a (app.js:1:234750)

I think it may be related with some plugins I'm using, such as Templater, Periodic notes and Calendar, but it'd be nice if the clipper plugin doesn't attempt to create a new note when it exists already.

trustin avatar May 15 '23 10:05 trustin