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

Suboptimal behaviour of Quick Edit (Ctrl+E) #7003

Open
ZippoLag opened this issue Feb 25, 2014 · 1 comment
Open

Suboptimal behaviour of Quick Edit (Ctrl+E) #7003

ZippoLag opened this issue Feb 25, 2014 · 1 comment

Comments

@ZippoLag
Copy link

When there are methods of the same name along several objects in the project tree, Brackets shows a list of all of them and selects the first one alphabetically, which can get quite long and troublesome for manually searching the desired method from the desired class, but it appears to me that the editor should be able to do this automatically, at least with the case I'm submitting screenshots for.
current behaviour:
current

expected behaviour:
expected

PS: I'm sorry if this is more of a feature request than a bug report (I checked the Trello but didn't see anything relevant)

@njx
Copy link
Contributor

njx commented Mar 3, 2014

Updated title to indicate this is Quick Edit, not Quick Docs.

In general, we use our Tern code intelligence mechanism to handle Quick Edit in JS, but if Tern can't figure out the exact reference (which might happen for a number of reasons), we fall back to just doing a simple search for functions/methods with the given name everywhere. So that's probably what's happening here.

To @dangoor to consider as part of the JS code hints research - might be worth investigating to see which of our built-in restrictions this is tripping on, or whether there's some other problem going on.

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