tiddlyclip icon indicating copy to clipboard operation
tiddlyclip copied to clipboard

Taking two snaps on one page inserts same reference

Open Marxsal opened this issue 2 years ago • 6 comments

If you take two snaps of one page, two thumbprints are created. However the inserted transclusion will only refer to the first thumbprint.

Marxsal avatar Mar 09 '22 22:03 Marxsal

You could tag them: image

|!Title|!Body|!Tags|!Fields modifiers|!field initials|!Modes| |((*@pageTitle*))/thumbprint|((*@exists(@snap)*??*@snap*))| [[((*@pageTitle*))]]||{"$type":"image/png"},{"$when":"((*@dateTimeShort*))"},{"$location":"((*@pageRef*))"}|[[SnapRuleMode]]| |((*@pageTitle*))|<$list filter='[tag<currentTiddler>]'>{{}}<hr></$list>|||{"$location":"((*@pageRef*))"},{"$caption":"((*@pageTitle*))"},{"$when":"((*@dateTimeShort*))"}|once add|

buggyj avatar Mar 09 '22 23:03 buggyj

The problem wasn't finding the images. The hope was to be able to snap images alternately with snipped text and have them both accumulate in a tiddler. Thanks!

Marxsal avatar Mar 10 '22 01:03 Marxsal

Being able to insert my own file name would work in my use case. What is the variable for the "User note" text box? Thanks!

Marxsal avatar Mar 10 '22 03:03 Marxsal

The variable is @userstring, and userstring must be entered into the modes column of the TiddlyClipConfig like so

image

But I have also created some new rules to handle this case - if you want you use, replace defaultSnap with SnapToInternal in the tiddlyclip config.

for saving images internal to TW snapextra.json.zip

for using with media saver also these are needed

snapexternalextra.json.zip

buggyj avatar Mar 10 '22 18:03 buggyj

The variable is @userstring, and userstring must be entered into the modes column of the TiddlyClipConfig like so

This seems to work pretty well. But I was wondering about how to reference the "Enter Note" box?

I did try to look at the extension source code, but couldn't figure out where the parameter was exposed for the user. Thanks!

Marxsal avatar Mar 10 '22 22:03 Marxsal

In the addon all the variables are gathered in pageData.js before being dispatched to the plugin.

The variable is @note and like @string note should appear in the modes column of the TiddlyClipConfig

buggyj avatar Mar 10 '22 22:03 buggyj