Hacker News new | ask | show | jobs
by brootstrap 2715 days ago
All hilarious mocking aside (although you should probably turn this into a SaaS somehow and get it in the cloud), I've been using a simple .txt file for journaling since i started first my professional software gig in 2014.

It has gone through multiple forms, once where i created a new file everyday, and it wasnt automated much. One day I realized I could be even MORE lazy and started automating a bit. Now i have one file, with a heading for each day. I have the vim command saved as an alias now 'journal'. It opens up the file, moves to the end, and enters insert mode :p

    alias journal='vim "+normal Go" +startinsert /worklog/start_20160426'
2 comments

I use git and surround my note taking scripts with these two functions.

# Pull Notes to make sure you are completely up to date before editing.

function pull_notes() {

  (
    cd $NOTES_DIR
    git stash
    git pull
    git stash pop
  )
}

# Push Notes up the git repo that these are attached to.

function push_notes() {

  date=$(date)
  (
    cd $NOTES_DIR
    git add .
    if [[ $(git status -s) ]]; then
      git commit -m "Notes Updated: $date"
      git push
    fi
  )
}