From 24e6753c3def9824665b017bb34d0827e249a884 Mon Sep 17 00:00:00 2001 From: breadcat Date: Tue, 18 Aug 2020 12:05:43 +0100 Subject: Hugo blog time format shortcode --- ahk-assistant.ahk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index 97fe046..6f778ab 100644 --- a/ahk-assistant.ahk +++ b/ahk-assistant.ahk @@ -300,6 +300,9 @@ Insert::appendClipboard() :*?:_time:: insertTime() Return +:*?:_dttime:: + insertBlogDateTime() + Return :*?:_dtime:: insertDateTime() Return @@ -630,6 +633,12 @@ insertTime() { Return } +insertBlogDateTime() { + FormatTime, CurrentDateTime,, yyyy-MM-ddTHH:mm:00 + Send %CurrentDateTime% + Return + } + insertDateTime() { FormatTime, CurrentDateTime,, yyyy-MM-dd HH:mm Send %CurrentDateTime% -- cgit v1.2.3