Nice things
Some nice things happened today. I didn't go to work and my daughter was sick, so she wrote a letter to Santa and we took it to the post office. Back home she played with my Lego Dimensions game for the PS4 and had a great time Sonic/ UniKittying around Lego world and Gotham. I played around with tech a bit and had a nice lunch. Little things can be good. Plus I got a snippet running to quick generate blog posts in VS Code.
-
File > Preferences > User Snippet
-
Selected "Markdown" as that's what I write my snippets in
-
Follow the generous instructions like so (
${#:Name}
are variables you tab to once the snippet is in place. Same # = same text):1{ 2 "Blog Start": { 3 "prefix": "blogh", 4 "body": [ 5 "Title: \"${1:Title}\"", 6 "Tags: [${2:Tags}]", 7 "Created: \"${3:DateTime ⇧+⌘+I or Ctrl+Shift+I}\"", 8 "Updated: \"${3:DateTime ⇧+⌘+I or Ctrl+Shift+I}\"", 9 "Type: ${4:article,review,indieweb,page,reply,event}", 10 "Synopsis: \"${5:Synopsis}\"", 11 "FeatureImage: /blog/media/${6:FeatureImage}", 12 "Item:", 13 " url: \"https://\"", 14 " image: /blog/media/", 15 " name: ${1:Title}", 16 " type: item", 17 " rating: 0", 18 "===" 19 ], 20 "description": "Creates the top bit for a blog entry" 21}
-
Install the
Insert Datetime
extension so that dates and times are quickly enterable. My blog does look at git created/ updated dates if the dates aren't supplied, but I like being specific. -
Delete anything that's not relevant.
-
Huzzah
Should save a bit of time putting up posts in the ol' text editor. Plus it's got me thinking of what other boilerplates I could fast insert via this tool. Interesting.
I also decided to make a teeny little easter egg for my code tag. tee hee!
