How to Display Core Icons as Thumbnails and Copy title to Clipboard on Click

It would be handy to have a tiddler or a sidebar tab to be able simple view all core icons and on click copy the tiddler title to the clipboard!

\define copyActions() <$action-sendmessage $message="tm-copy-to-clipboard" $param=<<imageTitle>>/>
<div class="tc-image-chooser">
<$macrocall $name="image-picker-list" filter="[all[shadows+tiddlers]tag[$:/tags/Image]]" actions=<<copyActions>> />
</div>

img_573_%pn

NOTE: This feature now is available in Tiddlywiki 5.2.1 see: https://tiddlywiki.com/prerelease/#Icon%20Gallery

5 Likes

That’s way better than the: https://tiddlywiki.com/#ImageGallery%20Example

I think, this should definitely be part of the core. I’ll create a pull-request. Will only take a view minutes. Thx for the contribution!

I’ll create a new tiddler, since the ImageGallery Example is mentioned in other tiddlers as an example to use transclusion and the list widget.

So the fix will probably change more than 1 tiddler. So we will see …


edit - See PR at: add a core icon selector to the docs by pmario · Pull Request #6112 · Jermolene/TiddlyWiki5 · GitHub

5 Likes

I frequently need to use the core images and I always forget the names!

Hopefully in TW 5.2.1 there is an Image Gallery! to have it at your disposal for frequent access

  1. open https://tiddlywiki.com/prerelease/#Icon%20Gallery
  2. drag and drop into your wiki
  3. tag it with $:/tags/MoreSideBar
  • Now open sidebar > More
  • See the last tab Image Gallery
  • On click the title is copied into clipboard

4 Likes