Private Note Implementation Summary | Generated by AI
All changes work correctly. Here’s a summary of what was implemented:
Changes Summary
1. ww/note/note_queue.py — enqueue_clipboard() accepts private param
- Added
private=Falseparameter - When
True, stores{"private": True}in the queue entry’s extra dict
2. ww/note/note_queue_process.py — Private note processing
- Added
PRIVATE_NOTES_DIR = "/Users/lzwjava/projects/jekyll-ai-blog/private-note" - When processing a queue entry with
"private": True, creates the note inPRIVATE_NOTES_DIR(viacreate_note_from_content(content, directory=...)) - Private notes are excluded from
created_pathsso they don’t get git committed/pushed - All other processing (MathJax fix, table fix) remains the same
3. ww/note/note_workflow.py — --private support for --sync path
- Added
PRIVATE_NOTES_DIRconstant - Added
--privateto argparse - When
--privateis set, skipscheck_uncommitted_changes(),git_pull_rebase(), and the git commit/push — just creates the note in the private directory
4. ww/main.py — Route --private flag
- Fast path (
ww note --private): Detects--privateinsys.argv, removes it, passesprivate=Truetoenqueue_clipboard() - Sync path (
ww note --private --sync): Leaves--privateinsys.argvfornote_workflow.py’s argparse to handle - Added help text:
ww note --private
5. ~/.zsh/completions/_ww — Tab completion
- Added
'--private[Save to private-notes dir, skip git push]'to thenote)arg completions
