Custom completer creation now extra easy

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

Custom completer creation now extra easy

Ville M. Vainio
Sometimes you just need a trivial completer, e.g. to "document" an api
of a magic function.

I added ipy_completers.quick_completer, the usage of which is just:

        [d:\ipython]|1> import ipy_completers
        [d:\ipython]|2> ipy_completers.quick_completer('foo',
['bar','baz'])
        [d:\ipython]|3> foo b<tab>
        bar baz
        [d:\ipython]|3> foo ba

--
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
_______________________________________________
IPython-dev mailing list
[hidden email]
http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev