Just to put in my two cents regarding the idea of "hotkeys"
manipulating applications and "hotstrings" (like your timestamp). I
apologize in advance for straying from the purpose of the list, but
thought this might be helpful.

I prefer implementing these at the level of the OS rather than inside
a given app. The advantage of course is that I have the same
datestamps and timestamps (and any other commonly used boilerplate
hotstrings) available across all my applications.

I didn't see if you mentioned your platform, but if it's windoze, I
highly recommend AutoHotKey.

Here's the relevant bits from my "hotstrings.ahk", which I have set to
always active in the background. To use any of the strings, I just
type e.g. "ids" and press ids followed by tab or enter and get
"2011-06-10", idts gives me "2011-06-10T10:48+7", dth is:
10:49 Friday, 10 June, 2011 - Hans Henderson - [email protected]

====================
;date/time-stamp + HH
::dth::
FormatTime, TimeString, YYYYMMDDHH24MISS, HH:mm dddd, d MMMM, yyyy
SendInput,  %TimeString% - Hans Henderson - [email protected]
return

;date/time-stamp
::dts::
FormatTime, TimeString, YYYYMMDDHH24MISS, HH:mm dddd, d MMMM, yyyy
SendInput,  %TimeString%
return

;date-stamp (human-readable)
::ds::
FormatTime, TimeString, YYYYMMDD, dddd, d MMMM, yyyy
SendInput,  %TimeString%
return

;time-stamp (human-readable)
::ts::
FormatTime, TimeString, HHmm, HH:mm
SendInput,  %TimeString%
return

;ISO date-stamp
::ids::
FormatTime, TimeString, YYYYMMDD, yyyy-MM-dd
SendInput,  %TimeString%
return

;ISO date/time-stamp
::idts::
FormatTime, TimeString, YYYYMMDDHH24MISS, yyyy-MM-ddTHH:mm
SendInput,  %TimeString%{+}7
return
==================================

And a link to a relevant spot in the AHK docs:

http://www.autohotkey.com/docs/Hotstrings.htm



On Jun 8, 2:25 am, MHill <[email protected]> wrote:
> I am hoping someone can tell me how to achieve the following behavior
> in Tiddlywiki:
>
> When I click the Edit link on a tiddler that already contains some
> content, a couple of newlines and '[current date/time]: ' are
> automatically appended in the edit box before I begin typing.
>
> For example, if an existing tiddler contains the following text:
>
>    "This is the first comment."
>
> clicking edit would open the edit box containing the following:
>
>    "This it the first comment.
>
>    [2011-06-07 1:30 PM]: "
>
> and the edit cursor would be positioned at the end of the original +
> automatically added text.
>
> Also, if the tiddler does not yet contain any text, the same would
> happen with the exception of the 2 newline characters.
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to