mbylstra / atom-elm-navigator

An Atom package for Elm that helps you navigate to any function, type definition or port in your project.
MIT License
8 stars 2 forks source link

Hide the navigator panel by default #8

Open mbylstra opened 7 years ago

mbylstra commented 7 years ago

Originally raised in https://github.com/mbylstra/atom-elm-navigator/issues/7

"It'd be super fantastic if the navigator could be hidden by default, and then a command offered which would expose the navigator and focus the filter field. "

mbylstra commented 7 years ago

I intentionally open the navigator right away, as the Elm Navigator was designed to be more like a "directory for your code" rather than a search feature. If you're prepared to give up the screen real-estate, I think it works pretty great for small to medium size code-bases (3 - 5 or so files), as everything is there, right in front of you. It particularly works well if everything fits on one screen and you don't even have to scroll.

It does get a bit unwieldy on larger projects, but I want to sit with it for a while first (I haven't used it much myself yet). I have a big project I'm working on with 30+ files so I'll give it a run with that to see if it gets annoying or not.

It also means not having to learn a hard to remember command such as Ctrl-shift-N or something that isn't already taken, or having to find it in the menu.

That being said, there should be a way to use the Navigator without using your mouse. What if I offered a keyboard command that would focus the search input? Would that make sense?