tzk/tzk/editions/tzk/plugins/TiddlyRemember/$__plugins_sobjornstad_Tidd...

31 lines
828 B
Plaintext

caption: RememberQ
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
created: 20161118171456554
description: Remember Question/Answer
icon: $:/plugins/sobjornstad/TiddlyRemember/icons/lightbulb-white.svg
modified: 20200517161709608
shortcuts: ((rememberq))
tags: $:/tags/EditorToolbar
title: $:/plugins/sobjornstad/TiddlyRemember/toolbar/rememberq
type: text/vnd.tiddlywiki
\define getMacro()
<<rememberq "$(questionid)$"
"Q"
"A">>
\end
\define prefixId() $(theprefix)$$(thetime)$
<$set name=thetime value=<<now "[UTC]YYYY0MM0DD0hh0mm0ss0XXX">> >
<$set name=theprefix value={{$:/config/TiddlyRemember/IdPrefix}}>
<$set name=questionid value=<<prefixId>> >
<$action-sendmessage
$message="tm-edit-text-operation"
$param="replace-selection"
text=<<getMacro>>
/>
</$set>
</$set>
</$set>