Also in your case you have `allCandidates`. I don’t have this as I’m going to query a remote service base on input and I want to display all that I will get :)

Uko

On 24 Feb 2016, at 21:52, Sven Van Caekenberghe <sven@stfx.eu> wrote:


On 24 Feb 2016, at 21:41, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:

This is super cool! But now I need to lookup: “How to make your own Spotter engine(whatever you call the thing)” ;)

That is actually surprisingly simple.

To look up known Unicode Characters by partial name:

GTSpotter>>#spotterForUnicodeCharacterFor: aStep
<spotterOrder: 30>
aStep listProcessor
title: 'Unicode Character';
allCandidates: [ UnicodeCharacterData database values ];
itemName: [ :each | each name ];
filter: GTFilterSubstring;
wantsToDisplayOnEmptyQuery: false

And if you want a preview:

UnicodeCharacterData>>#spotterPreviewIn: aComposite
<spotterPreview: 10>

 ... same as GT inspector ...

Cheers!
Uko

On 24 Feb 2016, at 21:38, Tudor Girba <tudor@tudorgirba.com> wrote:

Hi,

The recent debates around Spotter, showed that some of its features are not well understood. In an effort to document it more thoroughly I created a couple of (very short) videos. They have no sound. Please take a look and let us know what you think.


Spotting a class with GTSpotter 
https://www.youtube.com/watch?v=_wIh4fekcD8

Scoping a search to a specific category in GTSpotter 
https://www.youtube.com/watch?v=9-fY4mN6Isc

Using category shortcuts in GTSpotter 
https://www.youtube.com/watch?v=USNZ7_6gLDA

Using preview in GTSpotter 
https://www.youtube.com/watch?v=FSm5xylmTqM

Using the dive-in action in GTSpotter 
https://www.youtube.com/watch?v=C7mJBX3Oblw

Loading a public playground with GTSpotter 
https://www.youtube.com/watch?v=xeDDLLdA1v8

Navigating through files with GTSpotter 
https://www.youtube.com/watch?v=dHQqXcS0vDI

Refining a search through the dive-in-category action with GTSpotter 
https://www.youtube.com/watch?v=IclLett0d6c

Opening a cached playground page with GTSpotter 
https://www.youtube.com/watch?v=V_yndTSsj8c


Cheers,
Doru


--
www.tudorgirba.com
www.feenk.com

"Yesterday is a fact.
Tomorrow is a possibility.
Today is a challenge."




_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev