pechorin / any-jump.vim

Jump to any definition and references 👁 IDE madness without overhead 🚀
1.08k stars 41 forks source link

feature request: prioritize current file #108

Open emmanueltouzery opened 11 months ago

emmanueltouzery commented 11 months ago

this plugin is very useful, thank you very much!

an improvement that would be nice is that the matching files wouldn't be strictly sorted alphabetically, but if a candidate definition is found in the current file, then the current file would be put at the top as the first candidate.

I've had this situation when there are multiple java classes with the same function, for instance sendMessage(). And if I'm in NetworkConnector for instance, then most likely I want NetworkConnector.findMessage(), not FileConnector.sendMessage(), with otherwise also exist. And despite the fact that FileConnector is before NetworkConnector in the alphabet.

thank you again for the plugin!