Kero van Gelder
12/29/2005 5:57:00 PM
Recently, a thread about tab completion showed me
Readline.completion_proc = Proc new {|prefix| ... }
and while that is an improvement for my little apps, I wonder whether the
block can get more than the current word on the line, i.e.
little> save lo[TAB]
gives me the prefix (passed as param to the block) "lo", not e.g. "save lo"
or ["save", "lo"] so basically I can not use the context in a nice way (use
"localfile" in this case, not "load").
I figured I can do
Readline.basic_word_break_characters = ""
after which I get the entire line (which I can then #split by hand).
Am I missing something? Is readline (despite its weight) so primitive?
Bye,
Kero.