list on he fly selection :)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

list on he fly selection :)

Stéphane Ducasse
Hi guys

I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....

Gofer it
        squeaksource: 'DirtyExperiments';
        package: 'DirtyExperiments';
        load

| test |
test := DummyTest on: (Smalltalk allClasses).
test openInWorld

Of course I would love to have that for a lot of lists..... :)

Thanks Benjamin for this first version :)
Stef
Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Benjamin Van Ryseghem (Pharo)
Thank you,

if you want to play, I think you will love that:




Ben ;)

On Jan 18, 2011, at 4:00 PM, Stéphane Ducasse wrote:

> Hi guys
>
> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>
> Gofer it
> squeaksource: 'DirtyExperiments';
> package: 'DirtyExperiments';
> load
>
> | test |
> test := DummyTest on: (Smalltalk allClasses).
> test openInWorld
>
> Of course I would love to have that for a lot of lists..... :)
>
> Thanks Benjamin for this first version :)
> Stef


BrowserUseAutoSelectionList.1.cs (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Alexandre Bergel
In reply to this post by Stéphane Ducasse
Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?

Cheers,
Alexandre


On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:

> Hi guys
>
> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>
> Gofer it
> squeaksource: 'DirtyExperiments';
> package: 'DirtyExperiments';
> load
>
> | test |
> test := DummyTest on: (Smalltalk allClasses).
> test openInWorld
>
> Of course I would love to have that for a lot of lists..... :)
>
> Thanks Benjamin for this first version :)
> Stef

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Benjamin Van Ryseghem (Pharo)
If I remember well, in OB, it just disabled unwanted items (they appear are grayed), but there are still in list. So if you have a huge amount of items, even if there are disabled, it's long to find what you want :)


Ben

On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:

> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>
> Cheers,
> Alexandre
>
>
> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>
>> Hi guys
>>
>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>
>> Gofer it
>> squeaksource: 'DirtyExperiments';
>> package: 'DirtyExperiments';
>> load
>>
>> | test |
>> test := DummyTest on: (Smalltalk allClasses).
>> test openInWorld
>>
>> Of course I would love to have that for a lot of lists..... :)
>>
>> Thanks Benjamin for this first version :)
>> Stef
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Mariano Martinez Peck


On Tue, Jan 18, 2011 at 4:37 PM, Benjamin <[hidden email]> wrote:
If I remember well, in OB, it just disabled unwanted items (they appear are grayed), but there are still in list. So if you have a huge amount of items, even if there are disabled, it's long to find what you want :)


If you can call this guy by a shortcut in anywhere of the image, that would be great. Because with what Alexandre said about OB you have to do it inside OB. But I want to do it like Algernon.

cheers

mariano
 

Ben

On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:

> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>
> Cheers,
> Alexandre
>
>
> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>
>> Hi guys
>>
>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>
>> Gofer it
>>      squeaksource: 'DirtyExperiments';
>>      package: 'DirtyExperiments';
>>      load
>>
>> | test |
>> test := DummyTest on: (Smalltalk allClasses).
>> test openInWorld
>>
>> Of course I would love to have that for a lot of lists..... :)
>>
>> Thanks Benjamin for this first version :)
>> Stef
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Stéphane Ducasse
In reply to this post by Alexandre Bergel
close your eyes and imagine that you can just type as to get all the methods starting with as*
without extra shortcut whatever....
same for classes, packages... of course.

Stef

On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:

> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>
> Cheers,
> Alexandre
>
>
> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>
>> Hi guys
>>
>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>
>> Gofer it
>> squeaksource: 'DirtyExperiments';
>> package: 'DirtyExperiments';
>> load
>>
>> | test |
>> test := DummyTest on: (Smalltalk allClasses).
>> test openInWorld
>>
>> Of course I would love to have that for a lot of lists..... :)
>>
>> Thanks Benjamin for this first version :)
>> Stef
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Tudor Girba
I am not sure where it should work, but I tried in Pharo 1.2 and it does not work. First, there is a "self self". Second, even if I fix this one, I still get a DNU for OnTheFlySelectionPluggableListMorph>>lastKeystrokes.

Cheers,
Doru


On 18 Jan 2011, at 20:21, Stéphane Ducasse wrote:

> close your eyes and imagine that you can just type as to get all the methods starting with as*
> without extra shortcut whatever....
> same for classes, packages... of course.
>
> Stef
>
> On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:
>
>> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>>
>> Cheers,
>> Alexandre
>>
>>
>> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>>
>>> Hi guys
>>>
>>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>>
>>> Gofer it
>>> squeaksource: 'DirtyExperiments';
>>> package: 'DirtyExperiments';
>>> load
>>>
>>> | test |
>>> test := DummyTest on: (Smalltalk allClasses).
>>> test openInWorld
>>>
>>> Of course I would love to have that for a lot of lists..... :)
>>>
>>> Thanks Benjamin for this first version :)
>>> Stef
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>
>

--
www.tudorgirba.com

"Sometimes the best solution is not the best solution."


Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Benjamin Van Ryseghem (Pharo)
You must have tried between two commits on squeaksource (I hope ^^)
I will refactor that because the inst var is named lastKeystrokes but the method is named lastKeyStrokes ...


Thanks for your feedback :)



Ben

On Jan 18, 2011, at 8:34 PM, Tudor Girba wrote:

> I am not sure where it should work, but I tried in Pharo 1.2 and it does not work. First, there is a "self self". Second, even if I fix this one, I still get a DNU for OnTheFlySelectionPluggableListMorph>>lastKeystrokes.
>
> Cheers,
> Doru
>
>
> On 18 Jan 2011, at 20:21, Stéphane Ducasse wrote:
>
>> close your eyes and imagine that you can just type as to get all the methods starting with as*
>> without extra shortcut whatever....
>> same for classes, packages... of course.
>>
>> Stef
>>
>> On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:
>>
>>> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>
>>> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>>>
>>>> Hi guys
>>>>
>>>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>>>
>>>> Gofer it
>>>> squeaksource: 'DirtyExperiments';
>>>> package: 'DirtyExperiments';
>>>> load
>>>>
>>>> | test |
>>>> test := DummyTest on: (Smalltalk allClasses).
>>>> test openInWorld
>>>>
>>>> Of course I would love to have that for a lot of lists..... :)
>>>>
>>>> Thanks Benjamin for this first version :)
>>>> Stef
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "Sometimes the best solution is not the best solution."
>
>


Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Tudor Girba
Could you let me know when I should try again? I am very interested in this.

Cheers,
Doru


On 18 Jan 2011, at 21:39, Benjamin wrote:

> You must have tried between two commits on squeaksource (I hope ^^)
> I will refactor that because the inst var is named lastKeystrokes but the method is named lastKeyStrokes ...
>
>
> Thanks for your feedback :)
>
>
>
> Ben
>
> On Jan 18, 2011, at 8:34 PM, Tudor Girba wrote:
>
>> I am not sure where it should work, but I tried in Pharo 1.2 and it does not work. First, there is a "self self". Second, even if I fix this one, I still get a DNU for OnTheFlySelectionPluggableListMorph>>lastKeystrokes.
>>
>> Cheers,
>> Doru
>>
>>
>> On 18 Jan 2011, at 20:21, Stéphane Ducasse wrote:
>>
>>> close your eyes and imagine that you can just type as to get all the methods starting with as*
>>> without extra shortcut whatever....
>>> same for classes, packages... of course.
>>>
>>> Stef
>>>
>>> On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:
>>>
>>>> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>>
>>>> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>>>>
>>>>> Hi guys
>>>>>
>>>>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>>>>
>>>>> Gofer it
>>>>> squeaksource: 'DirtyExperiments';
>>>>> package: 'DirtyExperiments';
>>>>> load
>>>>>
>>>>> | test |
>>>>> test := DummyTest on: (Smalltalk allClasses).
>>>>> test openInWorld
>>>>>
>>>>> Of course I would love to have that for a lot of lists..... :)
>>>>>
>>>>> Thanks Benjamin for this first version :)
>>>>> Stef
>>>>
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> www.tudorgirba.com
>>
>> "Sometimes the best solution is not the best solution."
>>
>>
>
>

--
www.tudorgirba.com

"One cannot do more than one can do."




Reply | Threaded
Open this post in threaded view
|

Re: list on he fly selection :)

Benjamin Van Ryseghem (Pharo)
It "works" now (there is some bugs again but minors one I think)


Let me know if it works for you ^^

I've played a little with GlobalKeys ()

so I've added a global shortcut(cmd+e) which execute this block: [(DummyTest on: (Smalltalk allClasses)) openInWorld]
and I have implemented a new kind of AutoSelection list which react to an enter hit.

Like that, I push cmd+e, it opens the list of classes, then I choose the one I want, hit enter, and then it opens a browser on it.
(Like that, I do not open tons of workspace just to type the name of a class then cmd+b ^^)


Give me feedback please ^^

Thanks in advance,

Ben


On Jan 19, 2011, at 11:14 AM, Tudor Girba wrote:

> Could you let me know when I should try again? I am very interested in this.
>
> Cheers,
> Doru
>
>
> On 18 Jan 2011, at 21:39, Benjamin wrote:
>
>> You must have tried between two commits on squeaksource (I hope ^^)
>> I will refactor that because the inst var is named lastKeystrokes but the method is named lastKeyStrokes ...
>>
>>
>> Thanks for your feedback :)
>>
>>
>>
>> Ben
>>
>> On Jan 18, 2011, at 8:34 PM, Tudor Girba wrote:
>>
>>> I am not sure where it should work, but I tried in Pharo 1.2 and it does not work. First, there is a "self self". Second, even if I fix this one, I still get a DNU for OnTheFlySelectionPluggableListMorph>>lastKeystrokes.
>>>
>>> Cheers,
>>> Doru
>>>
>>>
>>> On 18 Jan 2011, at 20:21, Stéphane Ducasse wrote:
>>>
>>>> close your eyes and imagine that you can just type as to get all the methods starting with as*
>>>> without extra shortcut whatever....
>>>> same for classes, packages... of course.
>>>>
>>>> Stef
>>>>
>>>> On Jan 18, 2011, at 4:16 PM, Alexandre Bergel wrote:
>>>>
>>>>> Just tried. I could not immediately figure out what is the difference with the "Find Class" panel (pressing Cmd-f in OB)?
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>>
>>>>>
>>>>> On 18 Jan 2011, at 12:00, Stéphane Ducasse wrote:
>>>>>
>>>>>> Hi guys
>>>>>>
>>>>>> I'm sure that some of you will really like to type on that list and see it auto selectioning its elements....
>>>>>>
>>>>>> Gofer it
>>>>>> squeaksource: 'DirtyExperiments';
>>>>>> package: 'DirtyExperiments';
>>>>>> load
>>>>>>
>>>>>> | test |
>>>>>> test := DummyTest on: (Smalltalk allClasses).
>>>>>> test openInWorld
>>>>>>
>>>>>> Of course I would love to have that for a lot of lists..... :)
>>>>>>
>>>>>> Thanks Benjamin for this first version :)
>>>>>> Stef
>>>>>
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel  http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> www.tudorgirba.com
>>>
>>> "Sometimes the best solution is not the best solution."
>>>
>>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "One cannot do more than one can do."
>
>
>
>