Editor+Cmdline+TODO-OK Workflow
Personal use since 2020-07-18 22:51
, 18290 commits until 2022-01-28 22:26
, experience value for auto commit frequency is 10min/commit.
Pushing Your Notebook to public repo is a BAD IDEA, since when this workflow gets handy you'll inevitably write down important/sensitive info and they'll all be logged into git
.
- cmdline + texteditor + shellscript(or other cli)
- workflow + template + crontab
- establish file/folder naming conventions and follow them
- mark your task as TODO/OK
- prioritize your TODO/OKs visually
- benefit from fuzzy search feature provided by texteditor(cmd/ctrl+p) or fzf
- duplication is acceptable
- all changes are auto commited
crontab -e
NOTEBOOK_PATH=/path/to/your/notebook
*/10 * * * * /bin/bash -l -c "cd $NOTEBOOK_PATH && git pull >> /dev/null && git add . && git commit -m 'Commit automatically by crontab' >> /dev/null 2>> log/cron_commit.log"
7 * * * * /bin/bash -l -c "cd $NOTEBOOK_PATH && git push --porcelain >> log/cron_push.log 2>&1"
-
shell script generate task folder from template
- add
source $NOTEBOOK_PATH/tools/init_task_folder.sh
to your.bashrc
or.zshrc
... - and you get the init_task_folder helper
- then every task will have a sepreate workspace
- every task start from the "README.md" file
- add
-
Hopefully you get the idea now. Good Luck :D
- setup your own dotfile repo and isolate from notebook
- find patterns, standardize/automate your workflow with automation
- git provides rich information, you may develop scripts to analyze your
notebook
repo - seperate your life and work notebook repo
- use
tig filename/foldername
to view history - use dot or dash to seperate words while naming, either one is ok, just stay consistent
https://github.com/ery/suitup
I learned a lot from my first career mentor/manager(the workflow, the comline+editor mindset, coding tricks, shell scipts management...)
Huge thanks to him