Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Use em-dash in window title and exclude app name on OS X - #9620

Merged
kevinsawicki merged 1 commit into
atom:masterfrom
DouweM:window-title
Dec 4, 2015
Merged

kevinsawicki merged 1 commit into
atom:masterfrom
DouweM:window-title

Conversation

@DouweM

@DouweM DouweM commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

On OS X, the convention is to use the em-dash as the segment separator in window titles, and to not include the app name: (The two items at the top are window titles)

OLD

screen shot 2015-11-16 at 12 02 36

screen shot 2015-11-16 at 12 03 00

## NEW

screen shot 2015-11-16 at 11 57 31

screen shot 2015-11-16 at 11 57 59

Comment thread spec/workspace-spec.coffee Outdated

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.

You'll need to use an extended regex here (///) because the normal one doesn't support string interpolation.

@DouweM

DouweM commented Nov 18, 2015

Copy link
Copy Markdown
Contributor Author

@50Wliu Anything I can do to help this PR along?

@thomasjo

Copy link
Copy Markdown
Contributor

LGTM! /cc @atom/feedback

@lee-dohm

Copy link
Copy Markdown
Contributor

Looks good to me too 👍

Comment thread spec/workspace-spec.coffee Outdated

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.

Super minor, but any reason why you're using multi-line regexes here instead of a standard regex?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mnquintana It was pointed out to me by @50Wliu that string interpolation doesn't work in standard regexes.

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.

Ah yeah good point, neeeever mind 😆

kevinsawicki added a commit that referenced this pull request Dec 4, 2015
Use em-dash in window title and exclude app name on OS X
@kevinsawicki
kevinsawicki merged commit 1fac3cb into atom:master Dec 4, 2015
@kevinsawicki

Copy link
Copy Markdown
Contributor

Cool, thanks so much for this 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants