🍅 automatoes.com

Create a New Markdown File with the Date and Open It in VS Code

I use this thoughts command every day to make a new page for my journal:

local filename="/Users/johnlindquist/projects/thoughts/$(date +%Y-%m-%d).md"
touch -a "$filename"
open -a 'Visual Studio Code' ~/projects/thoughts -g "$filename"

Tags:

Contributor: [John Lindquist]

Referred in

edit
Create a New Markdown File with the Date and Open It in VS Code