-
Notifications
You must be signed in to change notification settings - Fork 351
Closed
Labels
Description
It has happened to me many times that typing the full name of a function in the search box, to get a result page, and end up clicking on the first result.
I would LOVE to have a feature that when hit ENTER or clicked the magnifying glass icon in combination with the CONTROL key, it will directly redirect me to the first match.
something that would mimic what we have in IEx, when you use the h
command without specifying its arity.
One thing to add would be that if a function matches exactly the ones in kernel, it should take me to that one function. For instance, if
The rules for redirecting would be in this order of precedence:
- if the search string matches exactly a module name, it redirects directly.
- if no module was given, and "search string" exactly matches a function name in Kernel or Kernel.SpecialForms, directly redirect (example: search for
puts
redirects toKernel.inspect/2
) - if the search only returned one result it will automatically redirect the user.
- if the search returned more than one result, but all functions belong to the same module and differ only in arity, redirect to the function with the smallest arity.
- if more than one result is returned, do not redirect, and display the search results.
How does the idea sound to you guys?