ST needs a way to customize tab names for files with the same name (e.g. index.js). If we have multiple files with the same name open ST displays the file name followed by "â path/to/file"
. The first few characters in a tab name are very important to figure out whatâs under the tab quickly. If these few characters represent a generic file name like index.js it doesnât help you at all. The situation can be even worse if you have "enable_tab_scrolling": false
and those tabs are shrunk like in the screenshot below:
Emacs, for example, has a customization like this:
Uniquify Buffer Name Style:
(*) forward
( ) reverse
( ) post-forward
( ) post-forward-angle-brackets
( ) numeric suffixes
How to construct unique buffer names for files with the same base name.
The value can be one of: âforwardâ, âreverseâ, âpost-forwardâ,
âpost-forward-angle-bracketsâ, or nil.
For example, the files â/foo/bar/mumble/nameâ and â/baz/quux/mumble/nameâ
would have the following buffer names in the various styles:
forward bar/mumble/name quux/mumble/name
reverse name\mumble\bar name\mumble\quux
post-forward name|bar/mumble name|quux/mumble
post-forward-angle-brackets name<bar/mumble> name<quux/mumble>
nil name name<2>
The "mumble" part may be stripped as well, depending on the
setting of âuniquify-strip-common-suffixâ. For more options that
you can set, browse the âuniquifyâ custom group.
Itâd be great if ST could have something similar to this or at least have the forward option.