News for hackers. Stuff that matters.
Re:Keeping a plaintext “did” file by JdeBP on Monday July 16, 2018 @03:30AM (#17539406)
No need for "normal Go". ex commands like r take addresses.

    vim +'$r!date' did.txt
Re:Keeping a plaintext “did” file by Lio on Monday July 16, 2018 @10:57AM (#17541758)
At first when I read this I thought why not use Vimwiki or org-mode or taskwarrior, etc... but actually I really like these simple aliases.

I use the same approach for a super simple "pomodoro" timer:

  alias pomo='echo "Starting timer for 25 minutes"; sleep 1500 && zenity --info --text "Pomodoro break; 5 minutes"; sleep 300 && zenity --info --text "Pomodoro: back to work"'
Re:Keeping a plaintext “did” file by inanutshellus on Wednesday July 18, 2018 @03:06PM (#17561192)
Notably, this doesn't add the date at a reliable place in the file. Instead, it adds the date at the last place your cursor was when you had the file open last.
Re:Keeping a plaintext “did” file by theptrk on Wednesday July 18, 2018 @10:55PM (#17563648)
I think adding a command to go to the next line would be the sweet spot
Re:Keeping a plaintext “did” file by theptrk on Tuesday July 17, 2018 @01:33PM (#17551456)
this doesnt seem to work in the same way for me, it doesnt print a timestamp to the file
Re:Keeping a plaintext “did” file by theptrk on Monday July 16, 2018 @10:16AM (#17541388)
oh thats smooth