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

Added example of how I can now keep a journal smoothly thanks to bear cli #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions examples/journaling/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Journaling
This one-liner (run in this folder..) will automatically make a template with date of today:

`sed "s#<date>#$( date +"%d/%m/%Y")#" templates/journaling.md | bear create`

You can also run this when logging in (that’s what I do):

Just add the `journaling.cmd` file to System Preferences > Accounts > Login item

Happy Journaling!

## TODO
- [ ] check if note of the day doesn’t exist yet, before creating
- [ ] change the title to more descriptive date. (keep the / for categorising)
3 changes: 3 additions & 0 deletions examples/journaling/journaling.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

sed "s#<date>#$( date +"%Y/%m/%d")#" $( cd "$(dirname "$0")" ; pwd -P )/templates/journaling.md | bear create
19 changes: 19 additions & 0 deletions examples/journaling/templates/journaling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# <date>

## Book notes

## Sleep notes

## Work notes

## Personal notes

## Workout notes

## Side project notes

## Investment notes

#me/journal/<date>