Let's consider the following example:

import math
class A(object):
    def f(self):
        pass
    def g(self):
        pass

From the symbols list, if I select the f method:

  1. its name is highlighted in the symbols list
  2. its heading is highlighted in the editor
  3. but the status bar says that I'm in A, while I would have expected A.f

While, if, from the symbols list, I select the A class:

  1. as above
  2. as above
  3. but the status bar says that I'm in unknown, while I would have expected A

Let's suppose now that the staus bar returns the right name of the current function.

From the editor, if I select the g method (could be its heading or its body):

  1. its name is not highlighted in the symbols list (it's still f), while I would have expected it to be
  2. the current line is highlighted in the editor
  3. the status bar says that I'm in A.g

At this point, I think that it would be relatively easy to:

  1. take the value returned from the status bar (A.g)
  2. take the value of the current symbol highlighted in the symbols list (A.f)
  3. if they are different [*] then highlight the symbol with value equal to one returned from the status bar (A.g)

[*] In certain cases the staus bar returns the value unknown, for instance if I select, from the editor, the import statement import math. So it would be better to rephrase the last point in:

  1. if (they are different and the value of the staus bar is not unknown) then highlight the symbol with value equal to one returned from the status bar (A.g)

I would really supply a pull request, but unfortunately I don't know C.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.