News for hackers. Stuff that matters.
Re:My productivity app for the past 12 years has been a sing... by progman32 on Monday February 10, 2020 @03:49PM (#22293133)
Was inspired by this, threw together this hack for vim users.

  #! /usr/bin/env bash
  cd ~/share # or wherever
  echo >> notes.txt
  date >> notes.txt
  if [[ $# -ne 0 ]]; then
    echo $@ >> notes.txt
  fi
  vim "+normal Go" +startinsert notes.txt
Enough to see if this will work for me.

I also aliased this to something short so I can quickly view notes starting at the bottom: vim "+normal G" ~/share/notes.txt

Re:My productivity app for the past 12 years has been a sing... by ernie24 on Tuesday February 11, 2020 @04:31PM (#22303102)
I also would like to use something similar but I wish to add new text on the top of the file (so oldest notes go to the bottom). I ended with something like this:

    nvim  -c "+normal ggO# $(date)" -c ':s/$/\r/' -c 'se nohlsearch' notes.md
Would be interested in knowing if I can make this nicer/more efficient.