Skip to content

PythonConsole: the list of completions in the autocomplete context menu no longer shows any objec path leading up to the final symbol being completed#7023

Merged
michaelDCurran merged 2 commits into
masterfrom
filteredPythonConsoleCompletions
Apr 12, 2017
Merged

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

This object path was always the same for all items for a given completion and caused choosing an item to be inefficient for the user (especially for large menus).

An example:
typing nav.parent.n and pressing tab used to list:
nav.parent.name
nav.parent.next
Now it lists:
name
next

…nu no longer shows any objec path leading up to the final symbol being completed. This object path was always the same for all items for a given completion and caused choosing an item to be inefficient for the user (especially for large menus).

 An example:
 typing nav.parent.n and pressing tab used to list:
 nav.parent.name
 nav.parent.next
 Now it lists:
 name
 next
@michaelDCurran michaelDCurran requested a review from jcsteh March 28, 2017 01:35
@derekriemer

derekriemer commented Mar 28, 2017 via email

Copy link
Copy Markdown
Collaborator

@jcsteh jcsteh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the below comment, please update the copyright end year.

Comment thread source/pythonConsole.py Outdated
for comp in completions:
item = menu.Append(wx.ID_ANY, comp)
# Only show text after the last dot (so as to not keep repeting the class or module in the context menu)
label=comp.split('.')[-1]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better as:

label = comp.rsplit('.', 1)[-1]

michaelDCurran added a commit that referenced this pull request Mar 28, 2017
@michaelDCurran michaelDCurran merged commit 9686896 into master Apr 12, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.2 milestone Apr 12, 2017
jcsteh added a commit that referenced this pull request May 23, 2017
jcsteh added a commit that referenced this pull request Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants