notetaker
                                
                                 notetaker copied to clipboard
                                
                                    notetaker copied to clipboard
                            
                            
                            
                        Sync all todos with a file
Currently, exporting todos from all to a markdown file is as easy as:
notes todos > todos.md
It will group them based on the files they were found in.
However, there are few considerations:
- It is useful to export all of your current todos in the same notes folder. This helps if you want to commit them in version control so you can have a single list of todos on mobile after pushing to GitHub.
- When exporting to your notes folder, then future runs of notes todoswould give you duplicate todos. You'd need to always put notes in folders and filter by them.
- It'd be better if we have a notes todos --exportflag which exports to a specific file like$NOTES_PATH/todos.mdand then this file is excluded when runningnotes todos.
- This would help with future syncing. E.g. notes todos --synccould sync todos from$NOTES_PATH/todos.mdback to every individual file it came from. This would be really nice to run after checking off todos from the common list. E.g. checking off on GitHub or from your mobile and then syncing back on your computer.
- Even better would be to run notes todos --syncin automatic action when changing$NOTES_PATH/todos.md. Could userun-if-changedlocally in a git hook or even GitHub Action in your private notes repo so it works when checking checklist items from github.com.
Checklist:
- [x] notes todos --export
- [ ] notes todos --sync
- [ ] Git hook for exporting/syncing
- [ ] GitHub action for exporting/syncing
notes todos --export is now implemented in #4.
It would be interesting to consider the use case of ordering todos from all of your notes in priority order in todos.md when they are all in one place. How do  you do that if notes todos --export is meant to always overwrite this "summary" todos file from your current notes?