Skip to content

fix(quick-capture): save desktop quick capture tasks with one checkbox - #729

Merged
Quorafind merged 1 commit into
masterfrom
fix/quick-capture-double-checkbox
Nov 29, 2026
Merged

Quorafind merged 1 commit into
masterfrom
fix/quick-capture-double-checkbox

Conversation

@Quorafind

Copy link
Copy Markdown
Member

The desktop quick capture window, the separate Electron window opened from the tray or global shortcut, formats each line of its input as a task (- [ ] text). WriteAPI.createTask and createTaskInDailyNote then add - [ ] to the content again, so captured tasks were saved as - [ ] - [ ] text.

Fix: handleSaveTask now splits the first line's list marker and checkbox off (splitCapturedTaskLine) before calling the write API.

  • A checked box ([x]) is saved as completed.
  • Later lines of a multi-line capture keep their markers and stay separate tasks.

Verified in Obsidian (obdev vault): capturing two lines from the window now saves - [ ] acceptance-qc-fix single and - [ ] acceptance-qc-fix second line. Before the fix, the same capture produced - [ ] - [ ] ….

Tests: src/__tests__/capturedTaskLine.test.ts covers the plain, list, numbered, checked, multi-line and bare-marker cases.

The desktop quick capture window formats each line of its input as a task ("- [ ] text"), and WriteAPI.createTask / createTaskInDailyNote add "- [ ] " to the content again, so captured tasks were saved as "- [ ] - [ ] text". Split the first line's list marker and checkbox off before calling the write API; a checked box ("[x]") is saved as completed. Later lines of a multi-line capture keep their markers and stay separate tasks.
@Quorafind
Quorafind merged commit ef7ac0a into master Nov 29, 2026
3 checks passed
@Quorafind
Quorafind deleted the fix/quick-capture-double-checkbox branch November 29, 2026 04:23
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant