[TxMt] Re: File name with multiple lines looks wired.
Allan Odgaard
mailinglist at textmate.org
Mon Aug 29 06:13:42 UTC 2016
On 28 Aug 2016, at 16:56, Ian Dai wrote:
> 2. Expected result
> - Click the file to open it, you should see file name show at top
> correctly.
Can you define “correctly”? Would you expect tabs to grow to twice
the height? And the same for file browser rows? Or would you want
TextMate to render the newline with a glyph?
Looking at how the system handles this, it does not :)
For example after `touch $'foo\nbar.txt'` this is what I see in Finder:
![](cid:D8839931-45AB-4084-BA12-33016F8071AA at textmate.org
"PastedImage.png")
And this is how it shows in TextEdit’s title bar:
![](cid:4DA665C2-4E7E-415C-B896-C78BF5F06D24 at textmate.org
"PastedImage.png")
For the records TextMate uses `NSFileManager`’s `displayNameAtPath:`
to obtain the display name which does things like replace `:` with `/`,
hide extension, localize the display name, etc.
I think it would be more appropriate to report this to Apple and request
the `displayNameAtPath:` also handle newlines.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160829/c590f94b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedImage.png
Type: image/png
Size: 11556 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20160829/c590f94b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedImage.png
Type: image/png
Size: 11076 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20160829/c590f94b/attachment-0003.png>
More information about the textmate
mailing list