From: Takao Kouji Date: 2008-08-11T13:42:45+09:00 Subject: Re: Readline and conditional tab results based on input Hi, I am the maintainer of Readline module. > And with Readline.completion_proc i have code that will return only dirs > in this directory. But I would like to invoke this specific code part > only > when a user typed in i.e. "cd " > > So if i have a directory called "foobar" it should work here: > > > "cd foo" # completed to foobar > > but if the user would type > > "blabalblabla foo" # there should be no result I want to add some methods that satisfy the Marc Heiler's demands. The patch contributed to the RubyForge is taken. [#3212] Readline does not provide enough context to the completion_proc http://rubyforge.org/tracker/index.php?func=detail&aid=3212&group_id=426&atid=1698 First of all, I will take it into ruby 1.9. Afterwards, backport to 1.8. Thanks, TAKAO Kouji.