6 ms·
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 thi
by ernie24 7y ago
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.