Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight files in the side bar that have been modified since the last commit with Git in Sublime Text 3 (like Atom does )?

Atom highlights files that have been modified since the last commit in the side bar:

highlight modified file in Atom

Is there any way to do this in Sublime?

like image 888
Robin Chen Avatar asked Aug 03 '16 03:08

Robin Chen


People also ask

Does Sublime Text have Git?

The Git features available in Sublime Text were derived from work that went into our other product, Sublime Merge. Sublime Merge is a full-featured, blazing-fast Git client built upon the technologies from Sublime Text.


1 Answers

Update

This is currently not possible according to this issue on the sublime-text-git plugin repository.

Original Answer*

*Before I realized that OP was talking about Git modified status, as opposed to unsaved changes.

This isn't exactly the same, but you can get close with built-in features.

You can follow the answer from this question to show open files in the side bar (View > Side Bar > Show Open Files). This adds a section called OPEN FILES at the top of the side bar. With the default theme, any modified file will have a little gray circle next to it. It may look different if you are using a custom theme.

In this example, I have three files open. The gray circle by modified file tells you it has been modified. (TODO.md is highlighted because it's currently selected.)

Sublime Text 3 - Open and Modified Files

like image 80
Frank Tan Avatar answered Oct 24 '22 09:10

Frank Tan