-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Find in Files provides no feedback when no results are matched #5237
Comments
Tagged starter bug. |
i would like to fix this bug.. |
@cosmosgenius That's great -- it's all yours. Since there is a UI element to this fix, there might be some back-and-forth to get the solution just right. Not sure if you prefer to start by discussing your planned solution, or just submitting a pull request and making adjustments after we see what you've done. cc: @larz0 |
@cosmosgenius @redmunds I think while Brackets is searching we should keep the modal bar. If there are results then hide the bar; if there's no match then give the input a red border so we can search again. |
IMO that looks perfect. On Sat, Sep 21, 2013 at 5:38 PM, Larz notifications@github.com wrote:
Raymond Camden, Adobe Developer Evangelist Email : raymondcamden@gmail.com |
@larz0 I was thinking the same. Maybe we should disable the search input while searching too? |
@TomMalbran great idea. Thanks @cfjedimaster. |
i'll try out the implementation discussed and let you guys know |
i see in the present implementation, that the resolution to the search(line 188) is done inside the close function of the modal.. Also i was thinking if it would be better if the function _showSearchResults return a boolean value to state if files for the search are present or not? |
@larz0 Currently, the modal bar is dismissed immediately, then there's a small amount of time while the search is being done, then, if there are any results, the panel is displayed. Should the modal bar be displayed while the search is being done, or is it OK to dismiss it and then re-display it after search completes? @cosmosgenius I think "no results" qualifies as "search results", so I think the code can go in |
@redmunds @cosmosgenius Ideally the modal bar should be displayed while the search is being done and dismissed when search results show up. |
Maybe show a spinner or progress bar while during the search? |
Right now there's already a spinner on the cursor. Not sure about Windows. @TomMalbran mentioned we should disable the input field while there's a cursor spinner. |
@cosmosgenius I thought of another question after you dropped off of IRC today. How are you getting "keep dialog open until search completes" code to work? In the current code, the search does not start until the dialog is dismissed, so it seems like that code is going to have to be refactored, anyway. |
yup i had to modify that part, I removed the resolve of the promise from the close function and moved it directly into the keydown handler.And moved the closing to _showSearchResults by passing the dialog object, That way we can control whether to close the dialog whether by checking if results are there or not. |
I actually took this bug as it seemed to have a small fix. I am new to brackets code so wanted a starting point. I am excited to do it but really require guidance, if code refactoring is required. |
It sounds like you are figuring things out. Submit a pull request and I will review your code. |
i have send a pull request. |
Nominating for Sprint 33. |
Fix for issue #5237 - Find in Files - No response for no result found
Closing. @cfjedimaster Let us know what you think about this solution. |
If it matches the screen shot, I'm cool with it. I typically run the release builds only. |
Using "Find In Files" and passing a string that is not matched, there is no feedback that it wasn't found. Maybe it is obvious, but I thought it was broken at first.
The text was updated successfully, but these errors were encountered: