Hey
I was trying to find out if there's a way to change the title of open tabs (currently: full file name), similar to how one can change the window title, as described in detail e.g. here:
http://blog.macromates.com/2011/format-strings/
(great read, by the way).
Since there's not equivalent to the 'windowTitle' variable in .tm_properties, that path is not an option.
So I thought I'd be clever by manually setting whatever variable it is the tab title relies on. Any chance that might work out?
I tried already setting static values for the obvious candidate variables (TM_FILEPATH, TM_DISPLAYNAME), which had the expected effect on the *window* title, but didn't affect *tab* title, which makes me think I'm on the wrong track here.
Anyone knows the details and cares to correct my misunderstanding?
On 5 Aug 2016, at 19:49, M. wrote:
I was trying to find out if there's a way to change the title of open tabs (currently: full file name) […]
This cannot currently be changed. Can you tell me what you would like to change it to?
I have a note on the TODO about introducing disambiguation when multiple tabs have the same name (e.g. index.html), so if this is basically your goal, it might work better as a native feature (since always showing “disambiguation” would take up a lot of space).
Btw: You _can_ give documents a custom display name, but currently only via `mate` when they are opened, but this display name is used beyond just the tab titles, I assume you want to keep the original display name in other locations.