Skip to content

Folder-rename batching for large bookmark collections #7

@paperhurts

Description

@paperhurts

Where

Future native-tree work; not currently triggered because onMoved listeners are deferred.

What

Spec §"Open questions":

Folder rename cost. Moving a top-level folder ("Research" → "Archive/Research") generates N PATCHes if N bookmarks live under it. Acceptable for hundreds of bookmarks. For thousands, may want a batched "rename folder" operation. Punt to v1.5.

Currently onMoved is a no-op (folder drift caught by hourly reconcile). When we implement onMoved-driven folder updates, a single user rename should produce one logical commit, not N.

Approach

Coalesce onMoved events during the 500ms debounce, detect rename patterns (same source-folder + same target-folder for many nodes), emit one renameFolder(from, to) mutation instead of N updateBookmark calls. Requires extending @gitmarks/core with a folder-rename mutation helper.

Tracked from

spec.md §"Open questions".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions