Repository navigation
Fix automatic screenshot naming with Rename and Convert - #2760
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.