1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Rework notes task to make edit the primary one

What was 'edit' has been renamed to 'open'. And 'edit' is now what was
not so clearly named 'save'.
This commit is contained in:
jbranchaud
2025-10-26 17:14:51 -05:00
parent e473fa781d
commit 6b4b2c588c

View File

@@ -23,6 +23,12 @@ tasks:
interactive: true interactive: true
silent: true silent: true
notes:edit:
desc: All-in-one edit, commit, and push notes
cmds:
- task notes:open
- task notes:push
notes:sync: notes:sync:
desc: Sync latest changes from the notes submodule desc: Sync latest changes from the notes submodule
cmds: cmds:
@@ -30,8 +36,8 @@ tasks:
- cd {{.NOTES_DIR}} && git checkout main - cd {{.NOTES_DIR}} && git checkout main
silent: false silent: false
notes:edit: notes:open:
desc: Edit NOTES.md (syncs latest changes first) desc: Opens NOTES.md (syncs latest changes first) in default editor
deps: [notes:sync] deps: [notes:sync]
cmds: cmds:
- $EDITOR {{.NOTES_FILE}} - $EDITOR {{.NOTES_FILE}}
@@ -52,12 +58,6 @@ tasks:
cmds: cmds:
- git status - git status
notes:save:
desc: Quick save - edit, commit, and push notes
cmds:
- task notes:edit
- task notes:push
notes:pull: notes:pull:
desc: Pull latest changes (alias for sync) desc: Pull latest changes (alias for sync)
cmds: cmds: