caponetto / vscode-diff-viewer

A simple VS Code extension to easily visualize git diff files.
https://marketplace.visualstudio.com/items?itemName=caponetto.vscode-diff-viewer&ssr=false#overview
MIT License
44 stars 5 forks source link

Make file headers sticky #43

Closed jacekkopecky closed 2 years ago

jacekkopecky commented 2 years ago

This PR will make the file header sticky so it stays at the top of the window as you scroll through a longer file.

Calling scrollIntoView() is necessary in case we are far through a long file; as we click "viewed" the file will collapse and other files or chunks could end up above the screen.

jacekkopecky commented 2 years ago

what would you like next @caponetto : I can offer either of:

  1. click on line number of filename to go to the file,
  2. show a count of viewed files and all files in a footer:
Screen Shot 2022-08-04 at 11 40 11
caponetto commented 2 years ago

@jacekkopecky I'd go with shorter PRs first :)