This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Use unique text editor title in window and tab titles - #9636
Merged
Merged
Conversation
Contributor
Author
|
Once af22a14 lands in master, I will move |
DouweM
force-pushed
the
unique-title
branch
2 times, most recently
from
November 18, 2015 15:54
6abe41f to
6263938
Compare
Contributor
Author
|
@benogle Anything I can do to help this PR along? |
Contributor
Contributor
|
Thanks for improving this. Your algorithm is easier to understand than the old one too 👍. |
maxbrunsfeld
pushed a commit
that referenced
this pull request
Nov 21, 2015
Use unique text editor title in window and tab titles
maxbrunsfeld
pushed a commit
that referenced
this pull request
Jan 8, 2016
Use unique text editor title in window and tab titles
|
I wonder why you were seeing: Because in such situations, I normally saw: ...which was imho way better (It is a big difference when I have a lot of open tabs!). I recently upgraded and I now see: I don't like the change. Is there any way to get the old behaviour back? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have two files,
app/services/notes/create_service.rbandapp/services/issues/create_service.rb.Right now it's impossible to find which is which using either the window or tab title:
With these changes, it is:
Both now use
<item>::getLongTitlewhich delegates toTextEditor::getUniqueTitlein the case ofTextEditoritems.Besides this,
TextEditor::getUniqueTitlewas modified to match Sublime Text's behavior, wherefeatures/index.html,features/main/index.htmlandcontact/index.htmlwill show asindex.html — features,index.html — features/mainandindex.html — contactrather thanfeatures/index.html — features,features/.../index.htmlandfeatures/index.html. With the original implementation, the difference between the first two would still be difficult to spot, and the actual filename could be pushed out of the tab if the directory names were especially long.PS. I used em-dashes rather than 'normal' dashes since this was developed in conjunction with #9620.