-
Notifications
You must be signed in to change notification settings - Fork 2
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
[filter] Bug fixes + Open item on enter if only one item is displayed #31
[filter] Bug fixes + Open item on enter if only one item is displayed #31
Conversation
(one thing to note for #30 is that I tried with atom 1.23.3 - need to upgrade and try again - just realized) |
I do not really like the fact that the enter key is ambiguous: chdir/open file depending on the number of files in the list. |
Sounds good, will update the branch later today :) Thinking of it, should I combine all the above?
|
Ok the desired behavior should be there. Both arrow-down and enter (when there is no / in the filter) move focus to the list. However, it seemed natural as I was testing it that if you are at the top of the list and you hit up-arrow to go back into editing the filter. Finally, while testing fixed the following:
|
Much improved! When I press a backslash in the filter I get an uncaught regex exception in line 106 (files-view.coffee). |
Pressing enter with a single file still opens it. And entering a name that does not match anything with enter throws an exception. |
|
Hi @newinnovations - sry for disappearing but I was in the middle of changing jobs...
I tried to reproduce #30 but I couldn't. However, in the process I found few a minor bug with the filter function on files-view panel. When the file list is filtered, up/down arrow selection was not working as expected: it was selecting the hidden files in the background instead of only selecting what is displayed.
Along the way of fixing this, I added 2 small features:
@confirmed()
method)Demo (one of my first gifs so not really a master-piece...):