notero icon indicating copy to clipboard operation
notero copied to clipboard

Disruption of Drag-and-Drop Feature During Notero Sync

Open nicolnt opened this issue 1 year ago • 2 comments

Describe the issue During the syncing process of Notero, the drag-and-drop functionality in Zotero becomes blocked, disrupting my workflow. As I heavily rely on drag-and-drop to assign tags or move documents within collections, this interruption significantly hampers my efficiency.

To Reproduce Steps to reproduce the behaviour:

  1. Add a tag by drag-and-drop or move document in a collection where Notero sync is enabled
  2. Wait for Notero to stop syncing
  3. Repeat step 1.
  4. Step wait for the repeat of step 2. to finish
  5. Again, for all the files you need to move or tags you need to add.

Expected behavior Non-blocking dragging of file when Notero is syncing

Screenshots image The screenshot shows Notero's small pop-up in the bottom-right corner of the Zotero window. During its display, drag-and-drop operations are inhibited, causing inconvenience.

Additional context

  • Windows 10 Pro 22H2
  • Zotero 6.0.30
  • Notero 0.5.13

nicolnt avatar Jan 29 '24 11:01 nicolnt

Thanks for reporting this, @nicolnt. I'm able to reproduce the behavior on macOS 14.2.1 in both Zotero 6.0.30 and Zotero 7.0.0-beta.56.

It's quite noticeable while trying to perform drag-and-drop operations, and I've also noticed that most UI interactions seem to be negatively impacted while a sync is in progress.

Upon some initial exploration, it looks like the UI impact occurs while Notero is performing operations to update Zotero items after each is saved to Notion. I imagine this is because these operations are happening on the main thread that's also used for UI updates.

I'll dig into this and see if I can come up with a fix.

dvanoni avatar Jan 30 '24 04:01 dvanoni

I'm discussing this with other Zotero developers on the mailing list. I don't have a solution yet, but I've at least narrowed down the cause to the code that generates item citations.

While absolutely not ideal, a way to work around the issue is by removing anything related to citations. Specifically, this means you'd have to:

  • Delete the Full Citation and In-Text Citation properties from your Notion database (if you have them)
  • In the Notero preferences, change the Notion Page Title setting to either Item Title, Item Short Title, or Item Citation Key (if you have Better BibTeX installed)

dvanoni avatar Feb 05 '24 07:02 dvanoni