obsidian-paste-image-rename icon indicating copy to clipboard operation
obsidian-paste-image-rename copied to clipboard

Sometimes file link isn't renamed after the image file is renamed.

Open Ali-C-Ila opened this issue 1 year ago • 2 comments

While the plugin always successfully renames the pasted image file, sometimes, the file link isn't renamed. This causes a broken link. (Then I will have to find the image manually, which is very annoying.)

Environments (please complete the following information):

  • OS: Windows
  • Use [[Wikilinks]]: True
  • Debug info: SYSTEM INFO: Obsidian version: v1.1.16 Installer version: v0.15.9 Operating system: Windows 10 Home 10.0.22621 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Legacy editor: off Base theme: adapt to system Community theme: Blue Topaz v20230218 Snippets enabled: 0 Restricted mode: off Plugins installed: 15 Plugins enabled: 14 1: Outliner v4.3.0 2: Quick Explorer v0.2.8 3: Quick Switcher++ v3.0.0 4: Settings Search v1.3.7 5: Excalidraw v1.8.21 6: Dataview v0.5.55 7: Advanced Tables v0.18.1 8: Find orphaned files and broken links v1.9.0 9: Sortable v0.3.1 10: Style Settings v1.0.3 11: Tag Wrangler v0.5.8 12: Obsidian_to_Anki v3.4.2 13: Paste image rename v1.6.1 14: Text Generator v0.2.21

To Reproduce This is happening randomly, sometimes after pasting the image, it just fails to be renamed. (I have not been able to reproduce this in sandbox so far.) ( This is my settings) image|300

Expected behavior Image link is renamed with the file, displaying the image correctly.

Screenshots image

Ali-C-Ila avatar Apr 02 '23 00:04 Ali-C-Ila

I can reproduce this if I paste 2 or more images at the same time.

luckman212 avatar May 08 '23 14:05 luckman212

Same here, when I paste 2 or more images, the file links all get inserted but only the last file link has the correct file name. The other file links point to the original file names (see screenshot) IMG_6451

retemirabile avatar Aug 11 '23 09:08 retemirabile