-
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
My first question is actually for |
Ok let's do this: When the user starts typing a new search switch it back to: |
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. |
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. |
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?
|
|
The tab label could show just the searched text up to a number of characters and the full info could go below the tab. |
In anticipation of a |
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. |
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. |
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? |
|
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. |
|
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. |
Currently, there is no mechanism for cancelling a search, but it would be easy to add. The |
This looks pretty good. We're finishing off Sprint 32, so I won't be able to merge this for a few days. |
I'm still seeing a JSLint error: |
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. |
Done with second code review. This is looking good. Just 1 bug and a little cleanup. |
I moved the query null check to _getQueryRegExp. Seem when the reg ex is invalid the same getting stuck situation is happening. |
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. |
Where are you doing that? |
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. |
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: