obsidian-link-archive
obsidian-link-archive copied to clipboard
Update the position information within note of original link before pasting the Archived link
Current behavior
- When activating the archiving process (that takes a while) and switching to another not, the Archived links get pasted into the other note
- Also, when moving the link within the same note, the Archived link gets pasted at the location where the original link was initially
Workaround
Manually move the Archived links to the correct position
Proposed solution
- When triggering archiving process, save the note, the process was triggered for
- When Archived link is ready for pasting into the note, search the note again for the location of the original link and position the Archived link accordingly
@ahue thanks for the report, in hindsight this is definitely something I should've considered haha :)
For now I think I'll add a note about not switching away until it completes, because I think fixing this might necessitate a larger rework of how the plugin works (interacting with files, instead of interacting with the editor)
I'm also realizing that I have the same issue if someone edits the file while the plugin is working.