Skip to content

[Feature] Expose a batch operation to expand/collapse items in the items tree #566

@mjthoraval

Description

@mjthoraval

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: Windows 11
  • Zotero Version: 8.0.2-beta.5+c35d7f21e (64-bit)
  • Plugin Version: 2.4.0

Describe the feature request

Is your feature request related to a problem? Please describe.
The script to expand selected items (#562) gets very slow as the number of selected items grows.

Why do you need this feature?
I would like to avoid speed delays on the script if the number of selected items or annotations is too big.

Describe the solution you'd like

The solution you'd like
Recommendation from DeepSeek:

The biggest improvement would come if Zotero exposed a batch operation:

// Ideal API (doesn't exist):
await Zotero.expandItems(items, { 
    depth: 'all',
    includeAttachments: true,
    includeAnnotations: true 
});

Alternatives you've considered
No.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions