Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync all todos with a file #3

Open
1 of 4 tasks
hkdobrev opened this issue May 11, 2020 · 2 comments
Open
1 of 4 tasks

Sync all todos with a file #3

hkdobrev opened this issue May 11, 2020 · 2 comments
Assignees
Labels
feature New feature

Comments

@hkdobrev
Copy link
Owner

hkdobrev commented May 11, 2020

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 todos would 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 --export flag which exports to a specific file like $NOTES_PATH/todos.md and then this file is excluded when running notes todos.
  • This would help with future syncing. E.g. notes todos --sync could sync todos from $NOTES_PATH/todos.md back 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 --sync in automatic action when changing $NOTES_PATH/todos.md. Could use run-if-changed locally in a git hook or even GitHub Action in your private notes repo so it works when checking checklist items from github.com.

Checklist:

  • notes todos --export
  • notes todos --sync
  • Git hook for exporting/syncing
  • GitHub action for exporting/syncing
@hkdobrev hkdobrev added the feature New feature label May 11, 2020
@hkdobrev hkdobrev self-assigned this May 11, 2020
hkdobrev added a commit that referenced this issue May 11, 2020
Add support for the exporting of todos in a file inside the notes path.

This is the first part of implementing #3.
@hkdobrev hkdobrev changed the title Export todos to a markdown file Sync al todos with a file May 11, 2020
@hkdobrev hkdobrev changed the title Sync al todos with a file Sync all todos with a file May 11, 2020
@hkdobrev
Copy link
Owner Author

notes todos --export is now implemented in #4.

@hkdobrev
Copy link
Owner Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant