phil294 / GitLG

A free, interactive Git UI for VSCode
MIT License
156 stars 16 forks source link

Add buttons in the changed files section #23

Closed lens0021 closed 1 year ago

lens0021 commented 1 year ago

This is another features vscode-git-graph provides.

Image

image

Video

Screencast from 2023-05-24 01-25-27.webm

A known issue: vscode-git-graph only shows the buttons when the file exists. However, in this PR, deleted file will result in 'File not found' window.

phil294 commented 1 year ago

Nicely done, thanks. Revealing these two icons only on hover makes a lot of sense UX-wise imo.

Only one problem: Next to CommitDetails, there is also CommitsDetails for when multiple are selected. I forgot about this myself when I added the grey file paths to the file listing recently. What needs to happen I think is for the file list to become a new separate component which we can then put into both parent components. I'll work on that in a few hours.