Skip to content

HTTPS clone URL

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: http://svn.textmate.org/trunk/Bundles/Remind.tmbundle@11141 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
View
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <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>
<key>name</key>
<string>Date and Time</string>
<key>scope</key>
Please sign in to comment.
Something went wrong with that request. Please try again.