RESOLVED FIXED 72798
Web Inspector: Design of the autocomplete suggest
https://bugs.webkit.org/show_bug.cgi?id=72798
Summary Web Inspector: Design of the autocomplete suggest
Nikita Vasilyev
Reported 2011-11-19 05:39:37 PST
Created attachment 115948 [details] Proposed changes Recently there were changes in autocomplete suggest https://bugs.webkit.org/show_bug.cgi?id=65511 The gray text right next to a text caret has been replaced with a pop-over. Can we keep both pop-over and "gray text on the same line" the same way Google SERP does? * It looks better when only one autocomplete item suggested * Accepting first suggestion by pressing right arrow key feels more intuitive
Attachments
Proposed changes (8.79 KB, image/png)
2011-11-19 05:39 PST, Nikita Vasilyev
no flags
Proposed changes 2 (9.35 KB, image/png)
2011-11-20 09:52 PST, Nikita Vasilyev
no flags
Patch (3.70 KB, patch)
2011-11-21 07:30 PST, Alexander Pavlov (apavlov)
no flags
Patch (7.71 KB, patch)
2011-11-22 00:16 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Timothy Hatcher
Comment 1 2011-11-19 07:06:22 PST
I agree. Just for comparison, Xcode still shows the popup when there is only one match.
Nikita Vasilyev
Comment 2 2011-11-19 07:37:18 PST
Xcode 4 suggest allows you to look up a reference by pressing the "?" icon. http://elv1s.ru/i/xcode-autocomplete-single-item.png I believe that's why it shows the popup when there is only one match. Web Inspector's suggest doesn't have anything like that, so do see the reason show it.
Timothy Hatcher
Comment 3 2011-11-19 08:34:55 PST
Funny, I don't see the "?" button on Xcode 4.2.
Timothy Hatcher
Comment 4 2011-11-19 08:35:46 PST
I agree showing it for one item isn't useful.
Pavel Feldman
Comment 5 2011-11-19 23:48:48 PST
(In reply to comment #4) > I agree showing it for one item isn't useful. I also find single suggestion looking weird, I agree we should fix it. Summary: 1) Show inline completion at all times 2) Do not show suggest box with single entry
Nikita Vasilyev
Comment 6 2011-11-20 09:52:58 PST
Created attachment 115985 [details] Proposed changes 2 I haven't considered the following case: Type 'con' Press arrow down (it should select the second item, 'console') Press arrow up (it should select the first (previous) item, 'confirm')
Pavel Feldman
Comment 7 2011-11-20 10:08:56 PST
> > Type 'con' > Press arrow down (it should select the second item, 'console') > Press arrow up (it should select the first (previous) item, 'confirm') I am not sure I understand what you are trying to say. But I like the mock.
Nikita Vasilyev
Comment 8 2011-11-20 10:16:11 PST
Here https://bug-72798-attachments.webkit.org/attachment.cgi?id=115948, on the right side, there is no 'confirm' item in the pop-over. It was a mistake. It was impossible to select 'confirm' using arrow keys once you selected item above. Hope it makes sense.
Pavel Feldman
Comment 9 2011-11-20 10:23:21 PST
(In reply to comment #8) > Here https://bug-72798-attachments.webkit.org/attachment.cgi?id=115948, on the right side, there is no 'confirm' item in the pop-over. It was a mistake. It was impossible to select 'confirm' using arrow keys once you selected item above. > > Hope it makes sense. Yeah, you should always list all options in the suggest box. (Except for there is only one option :) )
Pavel Feldman
Comment 10 2011-11-20 10:24:32 PST
Read as "(Except for the case when there is the only option)."
Alexander Pavlov (apavlov)
Comment 11 2011-11-21 07:30:06 PST
Nikita Vasilyev
Comment 12 2011-11-21 08:21:00 PST
It still shows a pop-over box when there is the only option available (e.g. "doc|ument").
Nikita Vasilyev
Comment 13 2011-11-21 08:31:17 PST
A text caret position bug has been introduced: http://www.screenr.com/Stqs
Alexander Pavlov (apavlov)
Comment 14 2011-11-22 00:16:51 PST
Alexander Pavlov (apavlov)
Comment 15 2011-11-22 00:18:21 PST
(In reply to comment #13) > A text caret position bug has been introduced: http://www.screenr.com/Stqs Thanks for the heads up! It was actually introduced with the suggest box from the outset but is annoying. I've uploaded an updated patch now.
Pavel Feldman
Comment 16 2011-11-22 01:03:14 PST
Comment on attachment 116186 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116186&action=review > Source/WebCore/inspector/front-end/TextPrompt.js:69 > + setProxyElementDisplay: function(x) renderAsBlock() ?
Alexander Pavlov (apavlov)
Comment 17 2011-11-22 01:19:06 PST
Note You need to log in before you can comment on or make changes to this bug.