fix: Start bulk selection from the open message #3
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bulk-selection-anchor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the Obsidian report Bulk selection does not start with the selected item.
Starting bulk selection ignored the open message, and a stale lastChecked anchor could survive selection resets and navigation. Ctrl/Cmd-click now includes the currently open message and clicked row; a fresh selection derives its range anchor from the open message only when it is in the current list. Checkbox clicks remain independent and subsequent Ctrl/Cmd toggles and Shift ranges are preserved.
Verification
bun run test,bun run build,bun run lint,git diff --check origin/main...HEAD— all passed.Scope / risk
Small selection-state change only. Separate from the bulk context-menu fix. No deployment or Obsidian note edits.
Merge conflict resolution
Merged current main (including PR #2) without rewriting branch history. Resolved the package.json test-command conflict by running both browser suites; the bulk-anchor shell runner now visits only its fixture because the context-menu fixture requires its dedicated Vite configuration.
Verified after integration:
bun run test(11 selection scenarios and 21 context-menu checks passed),bun run build,bun run lint(19 files), andgit diff --cached --checkall passed.