Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Add ellipsis to shorten notebook names #70

Merged
merged 2 commits into from
May 28, 2017

Conversation

dalthviz
Copy link
Member

Fixes #66

Preview:

imagen

@dalthviz dalthviz added this to the v0.1 milestone May 28, 2017
@dalthviz dalthviz self-assigned this May 28, 2017
@dalthviz dalthviz requested review from ccordoba12 and goanpeca May 28, 2017 00:51
sname = osp.splitext(osp.basename(self.filename))[0]
if len(sname) > 20:
fm = QFontMetrics(QFont())
sname = fm.elidedText(sname, Qt.ElideMiddle, 110)
Copy link
Member

Choose a reason for hiding this comment

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

Let's change this to ElideRight instead of ElideMiddle

@ccordoba12
Copy link
Member

@dalthviz, please update the screenshot so I can see how it looks now.

@dalthviz
Copy link
Member Author

Preview:

imagen

@ccordoba12
Copy link
Member

Nice!! Thanks for this :-)

@ccordoba12 ccordoba12 changed the title PR: Add ellipsis to shortened notebook names PR: Add ellipsis to shorten notebook names May 28, 2017
@ccordoba12 ccordoba12 merged commit 52a006e into spyder-ide:master May 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants