Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the ‘at’ snippet smarter: dates entered are right-aligned and if…

… the time is deleted, the ‘AT ’-prefix is removed as well (probably the ‘msg’ snippet will be removed and/or this one will be promoted to be the ‘msg’ snippet).

git-svn-id: dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 418362c017e0a1411806b8df468955dfe78aa452 1 parent d74192d
Allan Odgaard sorbits authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Snippets/Date and Time.tmSnippet
2  Snippets/Date and Time.tmSnippet
@@ -3,7 +3,7 @@
<plist version="1.0">
- <string>REM ${1:`LANG=en_US date +'%b'`} ${2:`date +'%e'`} ${3:`date +'%Y'`} AT ${4:16}:${5:00} MSG ${0:message…}</string>
+ <string>REM ${1:`LANG=en_US date +'%b'`} ${2/^(.)$|.*/(?1: )/}${2:`date +'%e'`} ${3:`date +'%Y'`}${4: AT ${5:16}:${6:00}} MSG ${0:message…}</string>
<string>Date and Time</string>
Please sign in to comment.
Something went wrong with that request. Please try again.