Uh oh!
There was an error while loading. Please reload this page.
Add popup for file history - #841
Conversation
Hi @cruessler - first of all, thanks for tackling this! The time you put into this is very appreciated! Functionally I did not see a specific case where the history was wrong, but I did not test that very throughly yet.
In terms of post-MVP steps I find these two most important:
|
1b662c7 to
9c17231Comparecruessler
commented
Aug 28, 2021
@extrawurst That took longer than expected, not least due to the fact that hard tabs were introduced to the codebase. :-) I hope it’s okay if I sometimes don’t get to answering your feedback immediately, but take a bit longer. Your comments are very much appreciated, though! I addressed the first two items of your list. By adding the scrollbar to Let me know what you think! |
extrawurst
commented
Aug 28, 2021
sorry for that. but rustfmt can only enforce hard tabs and not the other way around :(
no problem at all, we all do this in our spare time ❤️
looks good! is there any gotchas left that you know of, or do you think we can merge this as an MVP? |
@cruessler I revisited #381 and realise now that we are using the regular commit list here. I don't think this is what we want for the history view. I think we should aim for something more bespoke, similar to the blame view (short commit list on the left side and a diff of the current selected commit on the right) - similar to how fork visualises it - see #381 (comment) even if that means we have to make the single entry on the left side pane more than one line but I think it should contain the following:
|
cruessler
commented
Aug 29, 2021
Having a specialized list that shows additional information makes sense to me. I'll see what I can do! |
extrawurst
commented
Oct 6, 2021
@cruessler are you still on this? |
cruessler
commented
Oct 6, 2021
@extrawurst Yes, I was planning on working on it this weekend! |
cruessler
commented
Oct 10, 2021
@extrawurst I worked on the PR today. While the changes are not ready yet, I made good progress and will likely be able to present results over the coming week. Your proposal works quite well, I think. |
9c17231 to
246ae7cComparecruessler
commented
Oct 25, 2021
@extrawurst I finally got to updating the PR. It is not yet complete, but I wanted to do it anyway to let you know I have not forgotten the branch. The two-row layout for the items in the table works well, I think. Still missing is the column that shows the modifier for added/modified/deleted as well as the area that shows the diff to the selected line. |
extrawurst
commented
Oct 26, 2021
That starts to look really cool already though! Thanks for holding on here ❤️ |
ajschmidt8
commented
Nov 2, 2021
Looking forward to this feature addition!!! Thanks for all your work on this @cruessler and @extrawurst |
cruessler
commented
Nov 29, 2021
@extrawurst I’ve tried adding markers for “added/modified/deleted”, but I’m a bit stuck at the moment, and could need some help/input/ideas. The list of commits currently is a |
extrawurst
commented
Nov 29, 2021
@cruessler I checked out what we have so far and I am a little worried to add more functionality to the current What do you think about building a new
|
extrawurst
commented
Dec 25, 2021
@cruessler Merry Christmas 🎄 |
cruessler
commented
Dec 26, 2021
@extrawurst Not yet, but I want to work on the PR over the holidays. Merry Christmas! 🎄😀 |
fc21f4b to
24892bbCompareextrawurst
commented
Jan 10, 2022
@cruessler cool progress!! |
extrawurst
commented
Jan 10, 2022
@cruessler if the modification type makes this overly complicated maybe we can do a MVP that we polish a bit?
|
extrawurst
commented
Jan 26, 2022
@cruessler ping? 🥺 |
d225a96 to
98c6f83Comparecruessler
commented
Jan 30, 2022
@extrawurst I implemented your suggestions, and I think the PR is now ready for a first test and review. I have not yet cleaned up the code. I started extracting out |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@cruessler it really depends on how much time you have to work on this. the biggest thing is actually the missing edit: something interferes with the syntax view in the file-tree, its stays empty in this branch. not sure yet why |
The shortcut became unnecessary because the diff became always visible.
Stripping the prefix results in file content not being shown.
cruessler
commented
Jan 30, 2022
@extrawurst Next week I probably have little free time, so from my perspective it makes sense to merge first and address the outstanding issues later. I’d be happy to address them myself, but I totally understand if you don’t want to wait for that. I’m sure I would find other open issues. :-) I found the reason for the file contents not being shown and pushed an additional commit. |
extrawurst
commented
Jan 30, 2022
@cruessler thanks for sticking with this! this is a great addition! checkout when this effort started: august 2021! Awesome work🥳 |
cruessler
commented
Jan 30, 2022
@extrawurst I’m super happy this finally got merged! 🎉 Thanks a lot for being so patient! |


This adds a popup for showing the history of a single file. The PR is already in a state that should give you an idea of how the final version could look like.
There are a few issues that would need to be resolved before this can be considered ready:
git log -- <path>on the command line. I will investigate and have a look at howgitas well astigdo things to get an idea of how to speed things up.git log(I already have one minor discrepancy on my list).commandsdoes not return navigation commands forself.listyet.Looking forward to your feedback!