Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow searching for modules #18

Open
Crote opened this issue Jan 7, 2017 · 1 comment
Open

Allow searching for modules #18

Crote opened this issue Jan 7, 2017 · 1 comment

Comments

@Crote
Copy link

Crote commented Jan 7, 2017

Modules are currently very hard to discover. Let's say I want to find the functions contained in the module 'List'. There is currently no way to do this: the only way to find it is to guess the right package on elm package search and find it from there.

I'd instead like to be able to search on "List", and have an entry returned linking to http://package.elm-lang.org/packages/elm-lang/core/5.0.0/List. Furthermore, as a submodule List.Extra exists in elm-community/list-extra, an entry for that should be returned as well.

@Crote Crote changed the title Allow searching on modules Allow searching for modules Jan 7, 2017
@klaftertief
Copy link
Owner

There is an undocumented feature for something similar, but it's a little bit too strict at the moment. One can prefix a search query with module: to search for all functions in the given module, e.g. module:List to show all functions in a List module. It is too strict that it does not find List.Extra functions.

The feature is undocumented as it needs better UI (some search switch, not a keyword prefix) and not really fleshed out.
A section header with some module info and documentation should be put above the module contents, and those should maybe be collapsed per default.

Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants