docr
docr copied to clipboard
Scope-aware queries
Currently you can include the .
and #
symbols in type/symbol queries when searching or getting info. However, these are not scope-aware, meaning that using a query with .
will search for class methods/declarations and instance methods/declarations. For the sake of convention consistency, this should be re-evaluated to be scope-aware, so:
-
docr info String.to_s
should look for the class method; -
docr info String#to_s
should look for the instance method; -
docr info String to_s
should return the first available result
Having some form of UI to indicate similar available methods would also be useful here.