-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat: allow hiding hunks from full blame #767
feat: allow hiding hunks from full blame #767
Conversation
8d60bb2
to
be70a43
Compare
be70a43
to
b5769ab
Compare
I've figured out the (1) - trailing newline was caused by like this: info = {
body = { "feat: allow hiding hunks from full blame", "", "Fixes #765.", "" },
} |
My solution for this was to expose a format string for the preview layout. The main changes needed for this have mostly been done internally. It just needs exposing in a robust way. |
Sorry, I am not sure that I fully understand your suggestion, could you please elaborate a bit more on it? Do you mean that instead of adding Example - given the following blame info:
It's filled with all information (including hunks info). So, in your solution, if I understand correctly, when
and when
And that formatting should fully control the look of the preview without the need to mutate |
@lewis6991 have you got a chance to address questions above? I would like to follow your guidelines in implementation of the feature but I need a bit more info on it to go further |
Yes to the questions above. Just like we have:
We can have something similar for preview windows. However this format will match nvim virtual_lines so the user can also provide highlights. |
Superseded by #803 |
Fixes #765.
Hi! I am trying to implement a feature described in #765, I have a couple questions:
blame_line
function, only forcurrent_line_blame
. Should I add a new unit test and if yes, how can I approach this?