I am working on building an auto-complete for readline. What I have works, but it's static.
I want it to be able to prompt me based on file contents.
Although I knew it wouldn't work, here's what I tried:
What I want is the output of this function to be part of the dictionary at the place called out with the arrow above:
For reference, this is how the readline completer is coded: