Highlight git/VCS modified files in explorer, palette, and buffer tabs #1856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGELOG.md
if this change could be valuable to usersHi there! I'm enjoying using Lapce and excited to contribute to the project. This PR upates the styling of file names in the file explorer, file palette, and editor tab headers to reflect their curreng git/VCS status. I found this feature really useful in Atom (RIP). I've been using this locally for several days, and it has been accurate and stable so far.
Screenshot showing updated styling:
Notes:
LapceTabData.file_diffs
, it just needed to be tweaked a little to be accessible where neededLapceTabData.file_diffs
is currently aVec<(FileDiff, bool)>
; this changes it to aHashMap<PathBuf, FileDiff>
(for easy lookup by path) and adds a newfile_list: Vec<(PathBuf, bool)>
to support theint
based indexing that's happening on theVec
Specific things to look for during review:
References: