Home Download Buy Blog Forum Support

Goto Symbol dialog with long function definitions

Goto Symbol dialog with long function definitions

Postby jondreads on Sat Jul 30, 2011 2:32 pm

I have a python function with a long definition like this:
Code: Select all
    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 :)
jondreads
 
Posts: 5
Joined: Tue Jul 05, 2011 1:33 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 29 guests