[wingide-users] "Insert-style" autocomplete

Wingware Support support at wingware.com
Fri Apr 9 07:59:13 MDT 2010


cool-RR wrote:
> On Fri, Apr 9, 2010 at 2:26 AM, Wingware Support <support at wingware.com 
> <mailto:support at wingware.com>> wrote:
> 
>     cool-RR wrote:
> 
>         There's something that I'd want in the autocomplete. Let's say I
>         have a line that goes `wx.Color('red')`. I want to go there and
>         change it to `wx.NamedColor('red')`. So I move the cursor to
>         just before the "Color" part, and start typing "Na", and then I
>         get the autocompletion to `NamedColor`. Problem is, if I select
>         it it I will get `wx.NamedColorColor('red')`. It pushes forward
>         the current name instead of replacing it.
> 
>         It would be nice if it could replace it.
> 
> 
>     You might want to try one of the other modes in the Editor /
>     Auto-completion / Completion
>     Mode preference.  I've been using Replace Only Matching Symbols.
>      It's not perfect, and
>     indeed seems quite difficult to always guess correctly when
>     something should be replaced,
>     but it tends to work better than the plain Insert At Cursor mode.
>      It does seem to cover the
>     above case correctly.
> 
>     Stephan Deibel
>     Wingware | Python IDE
>     Advancing Software Development
> 
> 
> I turned on that setting, but it didn't help. I still get 
> `NamedColorColor` when I autocomplete.

Indeed.  I think I tried it with `wx.Named('red')` yesterday by
accident.  The "Replace Any Existing Symbol" mode will do it but
I find it's often eating things I want.  I'll look at whether we
can improve this to also take into account the existing symbol
matching the end of the completed symbol.

Thanks,

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com


More information about the wingide-users mailing list