-
-
Notifications
You must be signed in to change notification settings - Fork 270
Log Margin #654
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
Log Margin #654
Conversation
As a heads up I may be bit slow over the next few days on this PR and other PRs/issues. Key word being may. I have a few things I have to get done over the next week-ish and I'm not sure as to the effort involved, so feel free to take over here. |
No worries - my brother is visiting and I need to drain/clean all my radiators so... I don't have loads of free time either ;) |
use `L` to copy Magit
So, started looking into this one since I had a feeling it would be weird. Here's my thoughts:
|
Alright, come this weekend I'm grinding on this. To be perfectly honest I haven't played around at all with the Neogit UI lib, so it may (see, probably) take me longer to kick this out the door than you. The one thing I have already thought of, that may or may not be an issue, is updating the status components in place considering that I don't think we track line positions for elements within the Status buffer. I may be wrong on that one, I haven't checked yet. I know there is the status Regardless, I am going to get to working on this come Saturday and Sunday and fuck around and find out then. |
Don't sweat it, just a matter of time. Ask all the questions ;)
Yea, so, the status buffer is the only buffer that doesn't use the "new" library. Theres an "at some point" task to rewrite it using the same lib as everything else, but it's like... 1000+ lines long, so it's not going to happen overnight. So, unlike the popups and commit/reflog/log views, the status buffer doesn't have components. It's just a line-buffer with syntax. So, to update the status buffer, you just redraw it. You can see that behaviour with how folds (sections) get toggled opened/closed. |
So I guess I can use the UI lib's |
IMO, I'd first get all the config and data pushed to the line buffer and we can make it look fancy after. |
Ok, so I have been looking at this for 30 mins. I am going to implement a hack and abuse In the future, I want to do a total rewrite of how the Status Buffer is managed which will make the hack I am going to go with obsolete. |
#614 Does a bit of that wrt. repo-state, just fyi. Curious to see what you have in mind :) |
Hey I realized this has been left open by me. At this time I don't think I'm in a position where I am going to get this done or worked on in a reasonable period. Sorry about that. I'm going to go ahead and close this out. Neogit kicks ass, you folks (@CKolkey & @ten3roberts) have done a helluva lot of work to it, quite impressive where it is now. |
All good dude, thanks for all the contributions and maybe we'll see you some time down the road :) |
This PR tracks integrating the log margin from Magit into Neogit.
This is being set as a draft so the modifications and any progress made can be seen instead of a PR coming out of the backrooms with a bajillion commits.