Sounds very useful! I have a scenario that probably fits... When using PyCall I always find myself pressing tab to see what methods are defined on a python object:
"obj[:get_something]()[<tab><tab><tab>"... Crap... Gotta look at the docs... It would be awesome if you gave a quick how-to for something like that. On Thursday, February 18, 2016, Fabian Gans <[email protected]> wrote: > I want to share an (unregistered) package called CustomREPLComepletions > https://github.com/meggart/CustomREPLCompletions.jl. It hooks into the > REPL completion system and lets you add individual completions depending on > the function surrounding the current cursor. > > For example, if after the following lines: > > using CustomREPLCompletions > d=Dict("aa"=>5,"bb"=>6) > d[" > > hit the tab key twice and the completion suggestions will be "aa" and > "bb". > > Another example, and the main reason I put this together is when reading > files containing some kind of datastructure: > > using CustomREPLCompletions, HDF5 > data = h5read("myfile.h5"," # hit tab after the " > > This will look up the groups and variables stored in myfile.h5 and so you > can tab-complete yourself through the file's hierarchy. > I wanted to find out if anyone besides me would find this useful and if > yes how to best integrate this into the packages it concerns. > > Fabian > > >
