I would like to insert the current date and time pressing a single key shortcut in TextMate. Any ideas how?
|
For date type To see how this snippet works, hit Ctrl-Opt-Cmd S, expand Text, and select Current Date. You'll see that it is simply shelling out to the Unix See the date(1) man page for usage info and strftime(3) for details on the format string. E.g., for both date AND time, you could use
|
|||
|
|
|
You can use Text -> Execute Line and Replace with Result then select the |
|||
|
|