I fear most public TWs - (and probably even yours!) - look like webpages from 1995.
You
and I know a TW is not "just a webpage" but visitors see it as, well, a
page on the web - and they expect pages on the web to have nice graphics
etc. And informative graphics too, for that matter. This area is
typically lacking badly in TWs. (Yours too?)
Now, imagine if adding images was easy. I mean really SUPER EASY.
So here's a plugin concept for ya: An image wizard!
I believe that whoever implements it will have a sure fire success for a long time to come.
This is how it could appear in use:
In tiddler edit you simply type in e.g <<img>>. No urls. No intricate commands. Not even any size specs!
Switching
over to tiddler view mode, a popup opens showing your
favourite image search engine, e.g Google Image search.
...but once that View image is seen, you popup also shows Width [__]px, Height [__] px and a button [OK] (which actually means "Use this url and the stated dimensions". ...and there are some default values presented for the dimensions set by you at some earlier time - but you can change them here if you want to.
Clicking
the button makes a Ka-Zam sound and when the smoke settles there is an
image embedded in your tiddler where the invocation was made!
<;-)
Oh - "How?" ...Darn, I knew there was a catch. Ok, non-coder hypothersizin' here:
First, the
invocation for the macro or script or whatever it is might not be
exactly <<img>> but it should be super easy. Maybe [[img]]
or some other very easy-to-remember thing. No parameters paramter values
stated in the invocation for it, that is key.
Clicking the OK button pulls the url for the displayed image. I believe this is possible using techniques described here
This
url is inserted into/as a field in the current tiddler (i.e the tiddler
using the img command). Say field "imgurl". This is, by the macro,
applied to e.g a _canonical_uri template so to get a clean embedding.
The dimensions also creates fields imgwidth and imgheight.
Adding another occurrence of the same command creates imgurl#2 or some such.
Any wizards among us wiling to pick up the challenge? I honestly believe something like this could become a very popular plugin in TW.
<:-)
What might appears to be an elegant wizards hat on me is merely a simple conehead...
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,
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.
I have the start of something not completely unlike what you are talking about here, but it is missing the two things I mentioned above, which are probably the most important parts.
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 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?).