docr icon indicating copy to clipboard operation
docr copied to clipboard

Scope-aware queries

Open devnote-dev opened this issue 1 year ago • 0 comments

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.

devnote-dev avatar Apr 27 '23 00:04 devnote-dev