Home Download Buy Blog Forum Support

Include folder name in the tab label

Include folder name in the tab label

Postby bladedev on Thu May 09, 2013 4:17 pm

Hi,

I am using Sublime text 2 and have searched around for an answer but can't find anything.

I often have lots of files open with the same name but they are from different locations. If I hover over it will give me the path to the file. What I would like is to include the containing folder in the tab label.

So currently my tabs look like this:

test.js | test.js | test.js

and what I would like is:

model/test.js | view/test.js | controller/test.js

Anybody point me in the right direction for the config to do this, or perhaps a plugin that could help?

Thanks in advance!
bladedev
 
Posts: 2
Joined: Thu May 09, 2013 4:13 pm

Re: Include folder name in the tab label

Postby skuroda on Thu May 09, 2013 6:05 pm

This should already happen. Though it isn't "folder/filename" in the tab, it's "filename - folder"
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Include folder name in the tab label

Postby bladedev on Tue Jun 25, 2013 2:51 pm

Thanks for your reply, I see it works exactly as you describe. I assume there is no way to change it to "folder/filename" instead?
bladedev
 
Posts: 2
Joined: Thu May 09, 2013 4:13 pm

Re: Include folder name in the tab label

Postby adzenith on Tue Jun 25, 2013 3:47 pm

No, you can't change it. :\
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Include folder name in the tab label

Postby djhojd on Fri Oct 11, 2013 11:58 am

Can this feature be turnned ON even if you have just on file with that name? For me it helps seesing the path/folder without going to that tab and then checking window title...
djhojd
 
Posts: 3
Joined: Wed Mar 14, 2012 5:14 pm

Re: Include folder name in the tab label

Postby ales.vaupotic on Fri Oct 25, 2013 6:52 am

Hi, guys. Newbie here, checking out this awesome editor. Kudos to the author(s)!

+1 for always showing a folder name on the tab. Should be a user setting. Consider this structure:

Code: Select all
demo
   admin
      index.php
   css
      site.css      
   reports
      index.php
   settings
      index.php
   index.php

Open two of the index.php files, all is well. After hiding the sidebar and closing one of them, how do you quickly tell which file you are working on (besides the filename in the window title, which is "unreadable" on a 1920px wide notebook)?

I would go even further and make it intelligent. Internally you know if there are duplicate filenames down the main folder structure and only show folder name for those files. This way site.css would never show a folder name, but all the index.php files would.
ales.vaupotic
 
Posts: 1
Joined: Fri Oct 25, 2013 6:22 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 20 guests