Add dashes to the timestamp hotkey.

This commit is contained in:
voussoir 2022-11-02 18:43:09 -07:00
parent 863cb40709
commit cb53a8495a
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -7,5 +7,5 @@ import sublime, sublime_plugin
class TimestampCommand(sublime_plugin.TextCommand): class TimestampCommand(sublime_plugin.TextCommand):
def run(self, edit): def run(self, edit):
timestamp = "%s" % (datetime.datetime.now().strftime("%Y %m %d")) timestamp = "%s" % (datetime.datetime.now().strftime("%Y-%m-%d"))
self.view.insert(edit, self.view.sel()[0].begin(), timestamp) self.view.insert(edit, self.view.sel()[0].begin(), timestamp)