pry/pry — Issue #471: Make Pry::Commands have precedence.
Author: envygeeks
Created: 2012-02-11 13:14:24+00:00
State: open

Today while working on Pry-vterm_aliases so I could finally get it out (yes I know I'm lazy) I noticed an interesting case with Pry::Commands and precedence it would always select /\.(.*)/ before '.ll' because of the insert order. I think we should refactor it so that precedence can be set, so if we wildcard system commands with . we can also set pre-defined and known system commands (like aliases) which will always be selected first. Where passing order: 1 would always insure it's first (we would have to move away from using a hash for Pry::Commands.commands as you already know) but it also makes it better IMO.