[squeak-dev] Autocompletion (was: Re: Malfunction in OCompletion)

Chris Muller asqueaker at gmail.com
Wed Sep 11 22:55:14 UTC 2019


On Wed, Sep 11, 2019 at 9:49 AM Levente Uzonyi <leves at caesar.elte.hu> wrote:

> This is great. I always wanted to combine the two (eCompletition and
> oCompletition), but never had the time/motivation.
>

Is it a combination of their algorithms only, or is there a UI improvement,
too?

I know I tried at least one of them for a while, but it ended up slowing me
down because you always have to know at least a fragment of the method
name, but oftentimes I would only know what class-hierarchy it was in, and
I'd have to end up dismissing the proposed list just to be able to press
Control+0 to get to where I could type the class name to spawn the browser
to begin looking...

Now, I don't even worry about Control+0, I just

   type the partial class name right in the method I'm editing,
   select it (Cmd+w), then Cmd+b to browse,
   find the method, Cmd+c to copy,
   Cmd+ESC to close the window,
   Cmd+v to paste over the selection I used to browse.

Pretty hard for any completion system to beat that.

 - Chris



> It also has awesome new features (and some bugs :)).
>
> I suppose it's on github only, so I have to make pull requests to get
> things changed, right?
>
>
> Levente
>
> On Sun, 8 Sep 2019, Thiede, Christoph wrote:
>
> >
> > Hi Nicola,
> >
> >
> > not sure how well my answer applies to OCompletion, as I installed
> a fork of it (Autocompletion - which, btw, I can recommend), but did you
> check your preferences?
> >
> >
> > [IMAGE]
> >
> >
> > You might turn of #smartCharacters.
> >
> > Forgive me if I was wrong and you do not have this setting ...
> >
> >
> > Best,
> >
> > Christoph
> >
> >
> _________________________________________________________________________________________________________________________________________________________________________________________________________________________________
> > Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im
> Auftrag von Nicola Mingotti <nmingotti at gmail.com>
> > Gesendet: Sonntag, 8. September 2019 12:06:44
> > An: squeak-dev at lists.squeakfoundation.org
> > Betreff: [squeak-dev] Malfunction in OCompletion
> > Hi,
> >
> > Following the Help I installed OCompletion with:
> > ----------
> > (Installer ss project: 'OCompletion')
> >       addPackage: 'OcompletionSqueakCompatibility';
> >     addPackage: 'Ocompletion';
> >     install.
> > (Smalltalk at: #ECToolSet) register.
> > (Smalltalk at: #ToolSet) default: (Smalltalk at: #ECToolSet).
> > ----------
> >
> > This broke 2 things:
> >
> > 1] Now I have automatic closure of of ' " ( [ ... Which I do not like.
> >
> > 2] Now the Alt+' (and similar) do not act as toggle.
> > Example. if I write 123, highlight it, then press 2 times Alt+' I get
> > '123'''
> > The proper result should be
> > 123
> >
> > My image is clean, I was just installing all my preferred packages, one
> at a time, when I discovered that it is 'OCompletion' that mangles the
> quote/braces defaults and the toggle.
> >
> > Bye
> > Nicola
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190911/84d77c4b/attachment.html>


More information about the Squeak-dev mailing list