Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Quick open shouldn't jump to item until you type a character #3405

Closed
njx opened this issue Apr 10, 2013 · 13 comments
Closed

Quick open shouldn't jump to item until you type a character #3405

njx opened this issue Apr 10, 2013 · 13 comments

Comments

@njx
Copy link

njx commented Apr 10, 2013

  1. Open a JS file
  2. Cmd-T

Result: The editor immediately scrolls to the first definition in the file. I would expect it to wait until I've either typed a character or selected an item in the list.

I think it's always worked this way, but it just occurred to me that it's been bugging me all this time :)

@peterflynn
Copy link
Member

I thought we were modeling it after some other editor that behaves this way, but I just tried in Sublime and it definitely doesn't do that. And it certainly seems very unlikely that arbitrarily jumping to the alphabetically first function would ever be useful...

@njx
Copy link
Author

njx commented Apr 10, 2013

Another thing that's always weirded me out: I don't really like the fact that it scrolls on hovering an item. Doesn't seem useful to me, and it makes the behavior on open weird (because if your mouse happens to be over the area where the menu opens, and then you move it a little, the editor jumps around).

@peterflynn
Copy link
Member

I don't mind that one so much, personally... but again I can't find precedent for it elsewhere.

Might want to file it separately though -- it could be trickier to fix, because I think Smart Autocomplete doesn't distinguish between highlighting via rollover vs. highlighting via arrow keys.

@alfredxing
Copy link

I was digging around QuickOpen.js and found this bit of code:

typeAhead: false,   // won't work right now because smart auto complete 
                    // using internal raw results instead of filtered results for matching

Do you think that has anything to do with the issue?

@peterflynn
Copy link
Member

No, it's caused by _handleItemFocus() getting called right away. Actually I wonder if commenting out the call in _handleShowResults() would be enough to fix this...

@alfredxing
Copy link

That would work. Is there anything else that relies on that call?

@ghost ghost assigned njx Apr 18, 2013
@njx
Copy link
Author

njx commented Apr 18, 2013

Reviewed. To me, low priority.

@njx njx added this to the Brackets 1.0 milestone Mar 14, 2014
@njx
Copy link
Author

njx commented Mar 14, 2014

Low pri, but nominating for 1.0 because this weird behavior has always seemed wrong, and should be easy to fix.

@peterflynn
Copy link
Member

@njx I thought you tried out a simple fix for this a while back and it turned out to be more complicated than initial appearances?

This might be another one to put in the 'migrate away from smart-autocomplete' piggy bank...

@njx
Copy link
Author

njx commented Mar 18, 2014

I don't remember what the issue was, but I'm guessing we can fix it with your new version if it's not already fixed...

@peterflynn peterflynn assigned peterflynn and unassigned njx Apr 11, 2014
@peterflynn peterflynn modified the milestone: Brackets 1.0 Apr 11, 2014
@peterflynn
Copy link
Member

Reviewed - not critical for 1.0, though we expect a fix to land anyway

@peterflynn
Copy link
Member

Fixed in 1.3

@peterflynn peterflynn added this to the Release 1.3 milestone Apr 7, 2015
@peterflynn peterflynn assigned njx and unassigned peterflynn Apr 7, 2015
@nethip nethip assigned rroshan1 and unassigned njx Apr 8, 2015
@rroshan1
Copy link
Contributor

rroshan1 commented Apr 9, 2015

Verified the fix.. The issue no longer exists!!
Closing the issue.

@rroshan1 rroshan1 closed this as completed Apr 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants