Sublime Forum

[SOLVED] How to change ST3 settings for python function context search

#1

When I hover my mouse over a function name in Sublime Text 3, a box appears listing everywhere that function is being used in my project, and where it has been defined (in the current file and in other files). I would like to have matches in the current file be listed before matches in other files, or limit it to the current file. Where is the setting for this defined? I am not having luck finding it, or finding the answer on here.

Thanks!

0 Likes

#2

there’s no setting for it, but you can change the plugin code a little to get the order you want:

0 Likes

#3

Thanks, that worked perfectly.

For anyone running across this later, using Linux (probably any OS):

  1. Install the PackageResourceViewer package in Sublime Text 3
  2. Restart Sublime
  3. use PackageResourceViewer to open a resource (Default -> symbol.py)
  4. Apply the patch up there ^^
  5. Save symbols.py and it should work
  6. Install OverrideAudit package so you know when the modified package is out of date
0 Likes

#4

For what it’s worth, OverrideAudit as a OverrideAudit: Create Override command that does the same thing that the PackageResourceViewer command would do (without the extra commands that allow you to accidentally create reams of overrides), so if you’re not already using PackageResourceViewer, there’s no reason to install it. :smiley:

0 Likes

#5

Good to know :slight_smile: Thanks

0 Likes