mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Filename completion.
This commit is contained in:
parent
6617856b06
commit
4fca664ebc
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue