Skip to content

Fix automatic screenshot naming with Rename and Convert - #2760

Merged
callumalpass merged 1 commit into
mainfrom
fix/2703-image-renaming-context
Dec 2, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2703-image-renaming-context

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Fixes #2703.

Paste Image Rename and Convert 1.0.0 emits the reported toast from its vault-create handler when there is no active Markdown view. The task modal can be the active editor while the workspace has no Markdown view. The 5.1.0 integration only recognized the original Paste image rename plugin and only ran when creating a task.

Defer the Convert plugin's automatic action for screenshot bytes verified against a paste in Details. Once the saved task indexes the embed, use that task as the source for the plugin's naming and conversion settings. Obsidian updates the link in the saved note. Edit captures the final note for Undo, and the compatibility hook is removed when the dialog closes.

The native regression failed on the 5.1.0 release and passed on this branch with the real Convert plugin. It checks Create, Edit, saved links, Undo, and hook cleanup. On the isolated desk, the released build reproduced the exact toast in both dialogs. The branch saved the configured timestamp name in both dialogs, including configured WebP conversion, and Paste image rename 1.7.3 also worked.

@callumalpass
callumalpass merged commit 0097617 into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pasted image point to pre automatically renamed images

1 participant