-
-
Notifications
You must be signed in to change notification settings - Fork 609
Add popup for file history #841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
9c17231
Compare
@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! |
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:
|
Having a specialized list that shows additional information makes sense to me. I'll see what I can do! |
@cruessler are you still on this? |
@extrawurst Yes, I was planning on working on it this weekend! |
@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
246ae7c
Compare
@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. |
That starts to look really cool already though! Thanks for holding on here ❤️ |
Looking forward to this feature addition!!! Thanks for all your work on this @cruessler and @extrawurst |
@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 |
@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
|
@cruessler Merry Christmas 🎄 |
@extrawurst Not yet, but I want to work on the PR over the holidays. Merry Christmas! 🎄😀 |
fc21f4b
to
24892bb
Compare
@cruessler cool progress!! |
@cruessler if the modification type makes this overly complicated maybe we can do a MVP that we polish a bit?
|
@cruessler ping? 🥺 |
d225a96
to
98c6f83
Compare
@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 |
@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.
@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. |
@cruessler thanks for sticking with this! this is a great addition! checkout when this effort started: august 2021! Awesome work🥳 |
@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 howgit
as well astig
do things to get an idea of how to speed things up.git log
(I already have one minor discrepancy on my list).commands
does not return navigation commands forself.list
yet.Looking forward to your feedback!