[TxMt] Re: Possible to change tab title by changing environment variable?
Allan Odgaard
mailinglist at textmate.org
Sun Aug 7 14:33:11 UTC 2016
On 6 Aug 2016, at 19:20, M. wrote:
> Ideally, I'd *cut down* the file name via some regex, say, stripping
> the file ending, and generally, only displaying the last n characters
> of the name, so that all tabs would have the same width (and I can
> have more of them open without the tab bar overflowing).
This does sound more like something that needs to be a “native”
feature rather than something you can achieve by setting the tab title
for your documents.
Currently the tab widths have a minimum width of 120 pixels set here:
https://github.com/textmate/textmate/blob/master/Frameworks/OakAppKit/src/OakTabItemView.mm#L170
It would be easy to read this from user defaults instead, though you may
also need preferences as to how to truncate a title. Currently it’s
truncating the middle part.
More information about the textmate
mailing list