Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the position information within note of original link before pasting the Archived link #6

Open
ahue opened this issue Feb 6, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ahue
Copy link

ahue commented Feb 6, 2022

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
@tomzorz
Copy link
Owner

tomzorz commented Feb 6, 2022

@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.

@tomzorz tomzorz added the bug Something isn't working label Feb 6, 2022
@tomzorz tomzorz self-assigned this Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants