help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] autocomplete in gst REPL


From: Gwenael Casaccio
Subject: Re: [Help-smalltalk] autocomplete in gst REPL
Date: Fri, 3 Jul 2009 09:52:46 +0200
User-agent: KMail/1.12.0 (Linux/2.6.28-13-generic; KDE/4.2.95; x86_64; ; )

On Friday 03 July 2009 07:05:34 Stefan Schmiedl wrote:
> On Thu, 2 Jul 2009 22:45:16 -0400
>
> Tim Menzies <address@hidden> wrote:
> > i do a lot of teaching with GST smalltalk and the auto-completion is a
> > cool tool for making beginners more comfortable with the environment.
>
> Especially when they see their self-defined methods pop up in there :-)
>
> > So, unless there is some bad memory or runtime hit, I'd vote that:
> >
> > Dictionary at<TAB>
> >
> > returns  (at least)
> >
> > at:
> > at:put:
>
> and since you bring it up, here is what I sent to Paolo late last night:
>
> libgst/input.c
>
> void
> _gst_add_symbol_completion (const char *str,
>                           int len)
> {
>   const char *base = str;
>   const char *p = str;
>
>   if (completions_enabled < 1)
>     return;
>
>   /* Everything goes in ... what can happen? */
>   add_completion (str, len);
> }
>
> st> aDict at<TAB><TAB>
> at:                          atPutSubpart:
> at:ifAbsent:                 atRandom
> at:ifAbsentPut:              atSubpart:
> at:ifPresent:                atSynonym:put:
> at:noCObjectsPut:type:       atime
> at:put:                      atimeSec
> at:put:type:                 attr
> at:splitAndPut:decrementBy:  attrArray
> at:type:                     attributeAt:
> atAll:                       attributeAt:ifAbsent:
> atAll:put:                   attributes
> atAllPut:                    attributesArray
> atAllSynonyms:put:           attributesDo:
> atEnd
>
> st> aThing print<TAB><TAB>
> print                              printOn:indent:
> print:                             printOn:line:
> printAsAttributeOn:                printOn:special:
> printByteCodesOn:                  printOn:tag:indent:
> printCodePointOn:                  printString
> printHeaderOn:                     printString:
> printHierarchy                     printStringRadix:
> printNl                            printSubclasses:using:
> printOn:                           printXmlOn:collection:tag:indent:
> printOn:base:                      printedFileName
> printOn:in:
>
> You'll have to back up into the suggestion though (alt-b comes
> in handy).
>
> s.
>
>
> _______________________________________________
> help-smalltalk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-smalltalk

My 2 cents why it is not done in Smalltalk we can reuse OCompletion or the 
RoelTyper ? It should be easy to do a small binding of readline (or reuse 
NCurses)

Cheers,
Gwenael
 
-- 

VisualGST for GNU Smalltalk : http://visualgst.bioskop.fr/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]