lejsue / symbols-navigator

Symbols navigator for Atom.io
MIT License
13 stars 3 forks source link

Cleaner way of displaying getters and setters #23

Open kura opened 6 years ago

kura commented 6 years ago

In Python, it is possible to use a form of getter, setter and deleter, as below.

class A:
    _name = 'test'

    @property
    def name(self):
        return self._name

    @name.setter
    def name(self, name):
        self._name = name

    @name.deleter
    def name(self):
        del self._name

Currently, these 3 definitions are displayed in the symbols list as below.

f(x) name(self)
f(x) name(self, name)
f(x) name(self)

Distinguishing between them is difficult and leads to cluttered symbols. I was wondering if there was possibly a way to display this in a nicer way, maybe have them be part of the same <li> or something that shows they are related rather than separate entities.