Skip to content

Commit

Permalink
Filename completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
rking authored and rking@sharpsaw.org committed Aug 20, 2012
1 parent 6617856 commit 4fca664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pry/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fca664

Please sign in to comment.