-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Issue 5237: Show "no results" for Find in Files #4940
Comments
Comment by redmunds
My first question is actually for |
Comment by larz0
Ok let's do this: When the user starts typing a new search switch it back to: |
Comment by redmunds Dialog allows typing during search phase. The text is not updated until search is complete so it's hard to see, but I can see edits briefly when dialog is being dismissed. Text field should be disabled when search is in progress. |
Comment by redmunds Done with initial code review. Thanks for taking on this change. It's a bigger change than it first seemed, but this will make searching much better. |
Comment by redmunds I apologize for the late comments on this pull request, but I had a crazy idea about this. For me, another annoying thing about Find in Files is that sometimes I search for something in the code, do whatever, think I'm done and close the results panel. Later (sometimes only a few milliseconds), I realize there's something else I wanted to do. Unfortunately, the data is now lost -- which is a shame since the results panel data is now updated as you edit your code. So, I'd like a way to re-open the FiF results to see the previous search. What does that have to do with this pull request? I thought of this following workflow that may change what's been done so far in this PR:
Maybe need a way to see results panel without dialog open at top?
|
Comment by larz0
|
Comment by larz0 The tab label could show just the searched text up to a number of characters and the full info could go below the tab. |
Comment by redmunds
In anticipation of a |
Comment by larz0 If we want to show the panel on search we should move the search input on the panel so it feels like they're connected and stop the eyes from pogo-sticking. |
Comment by cosmosgenius Seems like a lot of design changes. From the discussion it seems now all the responses to the user will be done on the search panel instead of the dialog, which would be in the disabled state when the search is going on. And now rather than destroying the previous results we would store it and show it the next time FiF is opened. |
Comment by njx Definitely seems like a bit of scope creep :) I haven't followed this PR, but could we accept this as is and add the other idea to the backlog? |
Comment by redmunds
|
Comment by cosmosgenius i liked the part about keep the previous results and showing them when next time FiF is opened. I'll try implementing it and see how it goes. I'll update on this. |
Comment by redmunds
|
Comment by cosmosgenius How would i cancel an already initiated search?? I guess it wont be required as currently text field is disabled when search is in progress, but would like to know on how we could achieve the same. Other than this i am done. |
Comment by redmunds Currently, there is no mechanism for cancelling a search, but it would be easy to add. The |
Comment by redmunds This looks pretty good. We're finishing off Sprint 32, so I won't be able to merge this for a few days. |
Comment by redmunds I'm still seeing a JSLint error: |
Comment by redmunds This branch seems to have introduced a problem when you initiate a Find in Files with an empty search argument. The wait cursor and disabled modalbar never go away. |
Comment by redmunds Done with second code review. This is looking good. Just 1 bug and a little cleanup. |
Comment by cosmosgenius I moved the query null check to _getQueryRegExp. Seem when the reg ex is invalid the same getting stuck situation is happening. |
Comment by cosmosgenius If we press "enter key" for three to four times for a "noresult search" it doesn't respond to "enter or esc" keys anymore. Only after some interaction it works (like any other key or mouse click on input box). I couldn't figure out why it is happening. It seems something related to brackets-core. |
Comment by redmunds
Where are you doing that? |
Comment by redmunds Added Trello Card to Icebox for side discussion: https://trello.com/c/KY4eJL7V/1038-find-in-files-preserve-previous-results This was squashed into adobe/brackets#5477. Closing this one. |
Issue by cosmosgenius
Saturday Sep 28, 2013 at 15:37 GMT
Originally opened as adobe/brackets#5371
This is for #5237.
Removed the promise from dialog and create a function doSearch() which is called from the keydown event handler.
Moved "dialog" object to module scope so that function _showSearchResults can directly handle it.
Adding a css class "no-results" to the input box when no results are present.
cosmosgenius included the following code: https://github.com/adobe/brackets/pull/5371/commits
The text was updated successfully, but these errors were encountered: