On Sunday, April 12, 2015 at 10:50:51 PM UTC+2, Jed Carty wrote:
>
> The two parts of that that I am unsure of are including the image search 
> and just having a single <<img>> macro. Both should be doable, but they 
> would be the hard part. The image search I have no idea how to do, 
>

Hm, the way I imagine is simply(?) just to have an iframed google image 
search page. Pretty much this 
<https://www.google.se/imghp?hl=en&tab=wi&ei=E-UqVb_pLsTPygPewYAo&ved=0CBAQqi4oAg>
 
exact page. What you enter the search words into is the actual google image 
search field, just like showin in the first image. And when clicking an 
image there, google opens a "black area" showing the image that contains 
the "View image" button mentioned. Really nothing we woudl have to do at 
all (or?).

 

> the part where you just put <<img>> would require either some very 
> interesting magic to uniquely identify which instance of <<img>> in a 
> tiddler is being pointed to (in case there were multiple images in the same 
> tiddler), or it would require the popup to edit the text of the tiddler to 
> something that can uniquely identify that image.
>

Yes, I considered both scenarios (but I'm no hacker). There is a natural 
sequence though in that a tiddlers content is processed from top down 
(...right?) so maybe in hitting the first invocation ("#1"), it would 
associate it with imgurl#1, etc. 

Or, as you say, the call could be edited. Actually, it could be so tricky 
that the width,height and url fields are maybe transcluded directly into 
the call! (I'm tired so this may be pure fantasy of mine), but I mean, 
maybe something like [[img]] could, on Done, be transformed into 

[img width={{!!imgwidth}} height={{!!imgheight}} [{{!!imgurl}}]]

...and what is seen in that second image I posted are really the directly 
editable fields there!

(So simple!!! My nonchalant ignorance almost convinces myself here!)

 

> I have the start of something not completely unlike what you are talking 
> about here <http://ooktech.com/jed/externalbrain/#Image%20Link%20Cheat>, 
> but it is missing the two things I mentioned above, which are probably the 
> most important parts.
>

I must look closer at this tomorrow. I noted a zebra and then somehow I 
stumbled over the worlds cutest chamelion but I don't understand how it 
showed up. Tomorrow.

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b31bf07c-560f-4057-af4b-6b0d7456b465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to