[Feature] Keep tree state and selection in 'Files' tab when changing commit in history#1396
[Feature] Keep tree state and selection in 'Files' tab when changing commit in history#1396johanw1232 wants to merge 2 commits intosourcegit-scm:developfrom
Conversation
|
That is taken care of quite gracefully in this PR, by simply losing the selection (while still keeping the parent folder(s) expanded, if possible).
I don't see a big slowdown even several levels deep in a folder with lots of files. (If this is an issue, we could have an option "Preserve selection in file-tree" or similar.)
That is not really the same thing, since this feature also shows the selected file in context at its path in the repo. Having to drill down repeatedly to the same subfolder hierarchy each time another Commit gets selected is simply frustrating, and it makes the |
05dba32 to
6822ae3
Compare
072502a to
5ce919a
Compare
|
this is usefull |
… 'Files' tab when switching between commits.
633242b to
4d9069b
Compare
|
Rebased the branch, to work with the newer async handling. May need some extra work just to remove "flickering" when re-expanding file-tree levels (should be done all-at-once before re-displaying tree). |
599832a to
876e2a3
Compare
f325aaf to
6511d15
Compare
In the 'Files' tab for commit history window when previewing the selected file you lose the selection and expand state of all the nodes when selecting a new commit. It would be nice to keep the selection (if possible) when jumping between commits, for a quick glace of the changes made in a single file.
This PR aims to keep the selected item and update the preview to the new commit.