sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
804 stars 39 forks source link

Option to fuzzy-filter "go to symbol" list (and others?) instead of fuzzy-matching #1140

Open rkpatel33 opened 8 years ago

rkpatel33 commented 8 years ago

It would be great to have a settings option to preserver order of headers during quick navigation.

I am using it to navigate some very long .md files and often user search to narrow the list, but get confused sometimes as the closest match is at the top instead of matches in order of line number.

FichteFoll commented 8 years ago

So your actual request is to "prioritize the closer symbol definition" rather than always going from top to bottom?

rkpatel33 commented 8 years ago

Not 'closer symbol', I would like to be able to preserve 'document order' (i.e. sorted in ascending order of line number of each header tag' in the dropdown list.

Here is an example situation of what I talking about. In this specific case, Section 502 (L: 392) would appear above Section 612 (L: 532) in the dropdown when this proposed setting is turned on.

Hope that was clearer.

image

FichteFoll commented 8 years ago

That would defeat the purpose of fuzzy matching however, since you want to have the "best match" on top and not filter the results.

rkpatel33 commented 8 years ago

​You would still be filtering on fuzzy-matches, and selecting the closest match, just a different sort order of the list.

This is just a different use case and would be helpful for me. I actually would prefer this for python function name navigation in a module as well, personal preference.


Rishi K. Patel ​, ​ Founder ​, www.docnavapp.com ​ rishi@docnavlab.com ​, 917-647-0892​ LinkedIn https://www.linkedin.com/in/rkpatel33, @docnavlab https://twitter.com/docnavlab

On Thu, Mar 10, 2016 at 12:08 PM, FichteFoll notifications@github.com wrote:

That would defeat the purpose of fuzzy matching however, since you want to have the "best match" on top and not filter the results.

— Reply to this email directly or view it on GitHub https://github.com/SublimeTextIssues/Core/issues/1140#issuecomment-194960037 .

FichteFoll commented 8 years ago

So the feature request essentially becomes "Fuzzy-filter go to symbol list instead of fuzzy-match" as an option, correct?

rkpatel33 commented 8 years ago

Yes, that's it exactly.


Rishi K. Patel ​, ​ Founder ​, www.docnavapp.com ​ rishi@docnavlab.com ​, 917-647-0892​ LinkedIn https://www.linkedin.com/in/rkpatel33, @docnavlab https://twitter.com/docnavlab

On Fri, Mar 11, 2016 at 9:06 AM, FichteFoll notifications@github.com wrote:

So the feature request essentially becomes "Fuzzy-filter goto symbol list instead of fuzzy-match" as an option, correct?

— Reply to this email directly or view it on GitHub https://github.com/SublimeTextIssues/Core/issues/1140#issuecomment-195378868 .