1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Filename completion.

This commit is contained in:
☈king 2012-08-20 04:33:15 -06:00 committed by rking@sharpsaw.org
parent 6617856b06
commit 4fca664ebc

View file

@ -5,6 +5,9 @@ class Pry
module BondCompleter
def self.build_completion_proc(target, pry=nil, commands=[""])
Bond.start
Bond.complete(:on => %r/^edit\s/) do |input|
::Readline::FILENAME_COMPLETION_PROC.call(input) || []
end
proc{ |*a| Bond.agent.call(*a) }
end
end