Repository navigation
Live project search - #112
Conversation
|
I'm afraid I will feel out of control but I'm totally down to try it for a few weeks. |
There was a problem hiding this comment.
This could just be if result?.matches?.length then new Result(result) else null
|
Maybe I just need to try this out more. But right now it feels jarring to see the results update as I'm typing. As you mention it is also jarring when you type in the find field and all the results disappear. Also I ran into this error: |
|
@probablycorey the unhanded error is that issue we talked about with Q before the break. I'm not sure how to 'handle' an error. It is actually handled, but produces this error when the promise is rejected. I'm not sure of a better way to make it not jarring. Maybe they just stick around until you run another search? |
|
Can we merge it, and if people hate it we can turn it off? |
|
I'm cool with merging it. If it still feels weird in a week we can tweak it. |
Today, when you type in the search box, all the results are cleared until you hit enter to run another search.
After adding the live update of the replacement, the clearing of the results felt really abrupt. This pull changes things to instead live search.
This seems like it would be really painful on large projects, but it really isnt. When you start typing, the old search is cancelled, the results cleared, and a new search is started.
Some notes
I did some experimentation with not clearing the results before starting a new search to limit ui disruption, but the old results sticking around was really awkward.
I encourage some of you guys to update to this branch and try it out.
Depends on atom/atom#1340, so we should get that merged first.