sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Show File Type Icons in Open Files Section of Side Bar

Open AyhamAl-Ali opened this issue 8 years ago • 24 comments

Summary

when i open a file directly without any folders the icon of that file don't show up, but when i open a folder that has the same file the icon show up!

2017-02-12_024208

Expected behavior

Single file icon must be shown

Actual behavior

Single files icons are not shown

Steps to reproduce

none!

Environment

  • Operating system and version:
    • [ ] Windows 7 64bit
  • Sublime Text:
    • Build 3

AyhamAl-Ali avatar Feb 11 '17 23:02 AyhamAl-Ali

Your bug report is unclear. The screenshot you provided shows folders and files present in the sidebar.

Could you provide a screenshot of what appears when you open a file without any folders?

wbond avatar Feb 15 '17 11:02 wbond

@wbond If you look more in the screenshot you will see there is a lot of files opened without a folders like in group 2.. And there is files from the same file type are opened in folders and there is icons beside them 2017-02-17_023527

AyhamAl-Ali avatar Feb 17 '17 12:02 AyhamAl-Ali

The list of open files never shows "file type" icons, only an icon to show whether the buffer is dirty or not AFAICT.

keith-hall avatar Feb 17 '17 12:02 keith-hall

As @keith-hall has indicated, different sections of the sidebar show different things.

The Open Files/Groups section shows one entry per open file. The theme has the option of showing an icon to the left of it that can be clicked to close the file. There is also information the theme may use to indicate the file has been modified and has not been saved. This section is effectively vertical tabs, and can be enabled or disabled via the View menu.

The Folders section shows all folders and files along with icons based on the theme. The icons currently require a combination of theme info and tmPreferences to control what theme class is used for each type of file.

wbond avatar Feb 17 '17 15:02 wbond

Related: https://github.com/SublimeTextIssues/Core/issues/68 (same request for file tabs)

FichteFoll avatar Feb 22 '17 13:02 FichteFoll

Thank you guys for help, and @wbond in my theme there is this option ( "icon_file_type_enable": true, ) and i enabled it before (still enabled) but i still can only see icons in the folders section, i don't know if it's possible to see icons on the opened files in group section.

AyhamAl-Ali avatar Feb 22 '17 19:02 AyhamAl-Ali

@IRAQIG4MER Correct, it is currently implemented (and intended) that file type icons not show in the Open Files/Group section.

wbond avatar Feb 22 '17 19:02 wbond

Just an FYI for anyone browsing, I don't believe we intend to make this change.

wbond avatar Mar 08 '17 16:03 wbond

Is there no plan to implement icons for open files by type anywhere in the near future?

This would be extremely useful for me, and i'm not sure on how difficult would be to implement..

GhostValk avatar Jul 17 '17 19:07 GhostValk

@GhostValk That is correct. We (or more specifically, I) don't plan to implement file type icons on Open Files because it is effectively vertical tabs. In the same way we don't implement file type icons for tabs, we aren't implementing them for vertical tabs either.

wbond avatar Jul 17 '17 19:07 wbond

I known few friends of mine who migrate to Visual Studio because of this. :-( icons for tabs would be so awesome.

dskiba avatar Aug 02 '17 12:08 dskiba

can't believe i read these comments in 2k17

atomeon avatar Sep 11 '17 12:09 atomeon

can't believe i read these comments in 2k17

I'm reading them in 2019. Coming back to sublime to compare things but the tabs are so bad you have to slowly read to identify them. Along with some other things that should probably have been changed 5 years ago I think this will just be a little test for the day then back to vscode.

robclancy avatar May 02 '19 23:05 robclancy

yes, please do add the the file type icon to the sublime tabs. it'd not only look better, but it'll be more intuitive as one will immediately know what type of file he's looking at.

jpagarcia avatar Jun 14 '19 19:06 jpagarcia

+1 for adding file icons to tabs for better visual grepping please

tsujp avatar Sep 15 '19 08:09 tsujp

+1 for adding file icons to opened files...

Right now, the text bleeds together. Having file icons would greatly benefit those of us with disabilities or deficits. I don't have major visual deficits other than being short-sighted, however when text bleeds together, it makes it harder to differentiate between one file and another.

By adding colored icons, it makes identifying files much easier.

I would also love to be able to group them based on path, type, etc.. and have other colors displayed. Alternating row colors, and more.

Acecool avatar Dec 28 '19 13:12 Acecool

+1 for adding file icons to open files & tabs @wbond

Sublime looks super un-intuitive without this compared to Visual Code, and the only reason I still use it is because other editors do not allow me to use my AutoHotkey binds. I also do not see a single valid reason not to have this, especially since this is present in Projects ?? (I don't use Projects, I work on files straight from the temp folder of my FTP client and they often get ignored for uploading and just save locally, so all my files are open in 'Opened files').

FlopRe avatar Apr 06 '20 09:04 FlopRe

+1 Especially when many tabs are open and file names are truncated, it becomes difficult to find tabs. Icons would make that much easier. Plus it shouldn't be very difficult to implement and easy to disable for anyone who doesn't like it.

tobiasrenkin avatar May 21 '20 08:05 tobiasrenkin

I've just seen someone working in Storm, it made a huge difference to me, - the ability to distinguish open tabs without reading into tab names and file contents.

pusha avatar Jan 10 '22 15:01 pusha

+1 for adding file icons to open files & tabs @wbond

zhanggang807 avatar Apr 19 '23 06:04 zhanggang807

In the same way we don't implement file type icons for tabs, we aren't implementing them for vertical tabs either.

@wbond This is a mistake. Distinct, colored icons for different types of files make it VASTLY easier for humans to find the one they're after. Consider this comparison:

Screenshot 2023-08-30 at 21 04 37 Screenshot 2023-08-30 at 21 04 55

This is with just 3 files open. Now imagine 12. You have to READ each tab in Sublime whereas in Nova you just need to scan for the "green globe" to find the HTML file.

This is SUCH a mistake, that Apple—the company that never admits they're wrong and takes 17 years to respond to ANY feedback—reversed course with favicons in Safari tabs: https://daringfireball.net/2017/08/safari_should_display_favicons_in_its_tabs

Prohibiting filetype icons in tabs is a go/no-go decision for me (and many other developers). I came back to try Sublime 4 after using other editors for a while and I remember this frustration now. The icons are not clutter. They are functional. They MUST be added.

bdkjones avatar Aug 31 '23 04:08 bdkjones

@wbond so the UNANIMOUS opinion of your users is that icons would be very helpful. Every other IDE (and web browsers!) have this feature.

But for some dumb ideological reason, you're on a crusade to make Sublime's tabs as hard to read as possible?

What's the harm in enabling tab images for the 99% of us who find them extremely helpful? At this point, it seems like you're deliberately refusing this feature just to spite everyone.

More generally, it's a black mark against investing in Sublime. It doesn't appear to matter what users want or how much feedback you get--the app will never adopt anything other than your own personal preferences and that's that. If we have to fight this hard just for tab icons, what happens when we all want another, more important feature that you just don't like?

bdkjones avatar Jun 26 '24 20:06 bdkjones

Please don't ping specific users. Will is for instance no longer employed at sublimehq.

deathaxe avatar Jun 27 '24 06:06 deathaxe

Nah keep pinging him for his bullshit even if he doesn't work there anymore.

robclancy avatar Jun 27 '24 11:06 robclancy