Sublime Forum

Goto Symbol dialog with long function definitions

#1

I have a python function with a long definition like this:

    def load_test(test_id=None, test_run=None, defer_data=False, pass_flag=False, min_score = None, max_score = None, session=None):

Why I use goto symbol (cmd-R) and type ‘load’ the display for this line shows:
d…l…t…i…N…t…r…N…d…d…F…p…f…ore … …one, …ession=…one)

Obviously if you have several long function definitions it can become pretty difficult to tell them apart.

Some obervations:

  1. More text is shown towards the end of the line, it would be more useful to show text towards the start.
  2. Some truncations seem to take more space than not truncating. E.g. it shows “…one” instead of “None”.
  3. python specific: I could live without the def at the start of each line, the colon at the end and I don’t need the default parameters to be shown.

I guess what I’m saying is that this:
load_test(test_id, test_run, defer_data, pass_flag, min_score, max_score, …

would be more useful than this:
d…l…t…i…N…t…r…N…d…d…F…p…f…ore … …one, …ession=…one)

Great product BTW. Loving it more with every passing day :slight_smile:

0 Likes