-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] URL formatting when wrapping lines can be better #1566
Comments
Reviewed - |
Yes, I agree that this would make a good starter bug. |
|
I'd also like to note that there are other places in the UI where we'd also like to have this functionality. For example, edit a file, then close it without saving, and you'll get a dialog about the unsaved changes with the full url to the file displayed in that dialog. So, try to make the solution as generic as possible. |
Fixed. Closing. |
Sunday Sep 09, 2012 at 20:17 GMT
Originally opened as adobe/brackets#1604
This issue was split from #1565. This applies to the Quick Open list, Find in Files Results, any error dialog that displays a URL, and maybe more places.
When displaying URLs, the default way that they wrap is terrible. Basically, lines are only broken on hyphens and spaces. Possible solutions:
(a) breaking on any character using this technique: http://perishablepress.com/wrapping-content/
(b) make it break on path separators (but still not break on any/all chars) which might be relatively easy if we can just inject "zero-width space" chars or some such in the display string... e.g. http://stackoverflow.com/questions/2046530/whats-the-opposite-of-a-nbsp
(c) some form of smart truncation (some native apps preserve the start & end of the path, but replace the middle with ellipses).
The text was updated successfully, but these errors were encountered: