|
Timestamp.ahk
使用前,需要预先安装AutoHotKey套件,自定义快捷键:【Alt + T】,可修改。
目的就是把备注的内容,嵌入一个可供搜索的【时间戳】
- ;I have a solution on Windows 7 but not tried on mobile or other windows.
- ;Install AutoHotKey
- ;Make this script
- ;save as today.ahk, or whatever you’d like, this is set so that Alt-t inserts the string “20140602”, I happen to like ISO format without hyphens.
- ;there are other date formats if you wish.
- ;—
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- ; notes: the ! indicates use of Alt key
- !t::
- ;text := "{#}d-",原来用于WorkFlowy中的时间戳
- text := "--"
- ;trailer := " "
- trailer := ""
- SendInput %trailer%%text%%A_YYYY%%A_MM%%A_DD%-%A_Hour%%A_Min%%trailer%
- ;Send %text%%A_YYYY%%A_MM%%A_DD%%trailer%
- return
- ; outputs “20140602 ” with a trailing space, but trailer could be another value
- ;—
复制代码 |
|