From: Marc Heiler Date: 2007-11-18T00:50:00+09:00 Subject: Readline + completion of "all files in current directory" Hi, I am having a hard time understanding readline. If i have a list of possible matches for given files (and subdirectories) in a directory, how can I make readline work with that, so that i can type something like: some_method r where some_method would be just a method, and "r" a file in current directory (ie. rx.rb ry.rb rz.rb files) Readline.completion_proc = proc do |word| Dir['*'].grep(/\A#{Regexp.quote(word)}/) end Readline.completion_case_fold = true # hmm -- Posted via http://www.ruby-forum.com/.