Skip to content

feat: smart auto-cleanup, resilient undo, and auto-K threshold - #39

Merged
Harsh16gupta merged 1 commit into
masterfrom
auto-cleanup-resilient-undo
Aug 7, 2026
Merged

feat: smart auto-cleanup, resilient undo, and auto-K threshold#39
Harsh16gupta merged 1 commit into
masterfrom
auto-cleanup-resilient-undo

Conversation

@Harsh16gupta

Copy link
Copy Markdown
Collaborator

This PR handles automatic cleanup of empty notebooks after note moves, improves the undo mechanism to recreate deleted folders, and tweaks auto-K for larger datasets.

Key changes:

  • Auto-delete original notebooks that become empty after notes are moved during apply.
  • Resilient undo: store original folder titles/parent IDs in the changelog and batch-check folder existence on undo. If a folder was auto-cleaned, recreate it by title and cache the ID so we don't spam duplicate folder creation calls.
  • Removed manual cleanup UI button, tools menu command, settings, and webview cleanup state.
  • Set min K to 3 for datasets with 20+ notes to avoid splitting larger sets into just 2 categories.
  • Bumped version to 0.1.5.

Tested locally

@Harsh16gupta Harsh16gupta self-assigned this Aug 6, 2026
@Harsh16gupta

Copy link
Copy Markdown
Collaborator Author

Have been testing the changes locally, and it is working perfectly, so merging it.

@Harsh16gupta
Harsh16gupta merged commit 6980222 into master Aug 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant