Malfunction in OCompletion

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

Malfunction in OCompletion

Nicola Mingotti
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

















Reply | Threaded
Open this post in threaded view
|

Re: Malfunction in OCompletion

Christoph Thiede

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?




You might turn of #smartCharacters.

Forgive me if I was wrong and you do not have this setting ...


Best,

Christoph


Von: Squeak-dev <[hidden email]> im Auftrag von Nicola Mingotti <[hidden email]>
Gesendet: Sonntag, 8. September 2019 12:06:44
An: [hidden email]
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

















Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: Malfunction in OCompletion

Nicola Mingotti

Thank you Thiede,

In Preferences, disabling "Smart Characters" (which is specific to OCompletion) solved the problem.

I will give Autocopmletion a shot !

bye
Nicola





On 9/8/19 12:11 PM, 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?




You might turn of #smartCharacters.

Forgive me if I was wrong and you do not have this setting ...


Best,

Christoph


Von: Squeak-dev [hidden email] im Auftrag von Nicola Mingotti [hidden email]
Gesendet: Sonntag, 8. September 2019 12:06:44
An: [hidden email]
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

















    



Reply | Threaded
Open this post in threaded view
|

Re: Malfunction in OCompletion

marcel.taeumel
Hi Nicola,

if you load OCompletion the following way, that preference will be disabled by default:

Metacello new
configuration: 'OCompletion';
load.

Best,
Marcel

Am 09.09.2019 04:38:21 schrieb Nicola Mingotti <[hidden email]>:


Thank you Thiede,

In Preferences, disabling "Smart Characters" (which is specific to OCompletion) solved the problem.

I will give Autocopmletion a shot !

bye
Nicola





On 9/8/19 12:11 PM, 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?




You might turn of #smartCharacters.

Forgive me if I was wrong and you do not have this setting ...


Best,

Christoph


Von: Squeak-dev [hidden email] im Auftrag von Nicola Mingotti [hidden email]
Gesendet: Sonntag, 8. September 2019 12:06:44
An: [hidden email]
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

















    



Reply | Threaded
Open this post in threaded view
|

Re: Malfunction in OCompletion

Nicola Mingotti
Ok, thank you !


On 9/9/19 1:01 AM, Marcel Taeumel wrote:
Hi Nicola,

if you load OCompletion the following way, that preference will be disabled by default:

Metacello new
configuration: 'OCompletion';
load.

Best,
Marcel

Am 09.09.2019 04:38:21 schrieb Nicola Mingotti [hidden email]:


Thank you Thiede,

In Preferences, disabling "Smart Characters" (which is specific to OCompletion) solved the problem.

I will give Autocopmletion a shot !

bye
Nicola





On 9/8/19 12:11 PM, 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?




You might turn of #smartCharacters.

Forgive me if I was wrong and you do not have this setting ...


Best,

Christoph


Von: Squeak-dev [hidden email] im Auftrag von Nicola Mingotti [hidden email]
Gesendet: Sonntag, 8. September 2019 12:06:44
An: [hidden email]
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



















    



Reply | Threaded
Open this post in threaded view
|

Autocompletion (was: Re: Malfunction in OCompletion)

Levente Uzonyi
In reply to this post by Christoph Thiede
This is great. I always wanted to combine the two (eCompletition and
oCompletition), but never had the time/motivation.
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 <[hidden email]> im Auftrag von Nicola Mingotti <[hidden email]>
> Gesendet: Sonntag, 8. September 2019 12:06:44
> An: [hidden email]
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Autocompletion (was: Re: Malfunction in OCompletion)

Christoph Thiede

Indeed, Leon did a great job on it.


You're right, although I already have been considering to merge Autocompletion into Trunk, see #30.


Best,

Christoph


Von: Squeak-dev <[hidden email]> im Auftrag von Levente Uzonyi <[hidden email]>
Gesendet: Mittwoch, 11. September 2019 16:49:49
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Autocompletion (was: Re: Malfunction in OCompletion)
 
This is great. I always wanted to combine the two (eCompletition and
oCompletition), but never had the time/motivation.
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 <[hidden email]> im Auftrag von Nicola Mingotti <[hidden email]>
> Gesendet: Sonntag, 8. September 2019 12:06:44
> An: [hidden email]
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: Autocompletion (was: Re: Malfunction in OCompletion)

Chris Muller-3
In reply to this post by Levente Uzonyi
On Wed, Sep 11, 2019 at 9:49 AM Levente Uzonyi <[hidden email]> 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 <[hidden email]> im Auftrag von Nicola Mingotti <[hidden email]>
> Gesendet: Sonntag, 8. September 2019 12:06:44
> An: [hidden email]
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Autocompletion (was: Re: Malfunction in OCompletion)

timrowledge


> On 2019-09-11, at 3:55 PM, Chris Muller <[hidden email]> wrote:
>
>
> 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.

It might be nice if the drag/drop of a method from a browser message list to a text pane resulted in the name of the method being pasted instead of 'compiledmethod{largenumber}'. Perhaps with a shift-drag/drop to paste in the MyClass>>thisMethod type of reference?


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
The severity of the itch is proportional to the reach.