cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 馃崈
charm leaflet readability golang
at main 116 lines 1.9 kB view raw view rendered
1--- 2title: Note Organization 3sidebar_label: Organization 4description: Tagging, linking, and template workflows for notes. 5sidebar_position: 4 6--- 7 8# Note Organization 9 10## Tagging 11 12Tags provide flexible categorization without hierarchical constraints. 13 14**Add tags during creation**: 15 16```sh 17noteleaf note create "API Design" --tags architecture,reference 18``` 19 20**Add tags to existing note**: 21 22```sh 23noteleaf note update 1 --add-tag reference 24``` 25 26**Remove tags**: 27 28```sh 29noteleaf note update 1 --remove-tag draft 30``` 31 32**List all tags**: 33 34```sh 35noteleaf note tags 36``` 37 38Shows each tag with the count of notes using it. 39 40**Tag naming conventions**: Use lowercase, hyphens for compound tags. Examples: `research`, `meeting-notes`, `how-to`, `reference`, `technical`, `personal`. 41 42## Linking 43 44While not a first-class feature in the current UI, notes can reference tasks by ID or description: 45 46```markdown 47# Implementation Plan 48 49Related task: #42 (Deploy authentication service) 50 51## Next Steps 52- Complete testing (task #43) 53- Write documentation (task #44) 54``` 55 56Future versions may support automatic linking between notes and tasks in the database. 57 58## Templates 59 60Create reusable note structures using shell functions or scripts: 61 62**In ~/.bashrc or ~/.zshrc**: 63 64```sh 65meeting_note() { 66 local title="Meeting: $1" 67 local date=$(date +%Y-%m-%d) 68 local content="# $title 69 70**Date**: $date 71 72## Attendees 73- 74 75## Agenda 76- 77 78## Discussion 79- 80 81## Action Items 82- [ ] 83 84## Next Meeting 85- " 86 87 echo "$content" | noteleaf note create "$title" --tags meeting --editor 88} 89 90daily_note() { 91 local date=$(date +%Y-%m-%d) 92 local title="Daily: $date" 93 local content="# $title 94 95## Completed Today 96- 97 98## In Progress 99- 100 101## Tomorrow's Focus 102- 103 104## Notes 105- " 106 107 echo "$content" | noteleaf note create "$title" --tags daily --editor 108} 109``` 110 111Usage: 112 113```sh 114meeting_note "Q4 Planning" 115daily_note 116```