Skip to content
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

Feature request - have PR review converstations in the PR buffer #100

Closed
weilbith opened this issue Feb 23, 2021 · 7 comments
Closed

Feature request - have PR review converstations in the PR buffer #100

weilbith opened this issue Feb 23, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@weilbith
Copy link
Contributor

After a review is done it is cumbersome to have conversations only by viewing the PRs review (Octo pr reviews). As the stubs of the conversations are already in the PR buffer, it would be amazing to extend this with the whole content. If you could then add "comments" to these review conversations would be even better. The same for resolving them.

These features would fit well as addition:

  • using folds for the reviews conversations
  • using foating windows to preview the code snippet that the conversation relates to
@pwntester pwntester added the enhancement New feature or request label Feb 23, 2021
@pwntester
Copy link
Owner

Thinking about this one, how would you differentiate the PR comments from the thread comments? It would be nice if we could indent them as its done in the web UI but I dont think that would be possible.

@kkharji
Copy link
Contributor

kkharji commented Feb 23, 2021

👍 I always disliked not being able to see those type of comments. Maybe different color for the comment or something to make obvious

@weilbith
Copy link
Contributor Author

I would like to have both options. So indent them, put something in their header (as already now) and also add new highlight groups for them. You still link these groups to the already existing comment groups.
And depending on how you add (later) the code snippet, this will become even more distinguishable.

Repository owner deleted a comment from weilbith Feb 24, 2021
@weilbith
Copy link
Contributor Author

I just realized that the content of the comments themselves are Markdown. So the different highlighting is little bit more tricky and initially thought.

@pwntester
Copy link
Owner

Yep, not an easy solution, but I will check if there is anything we can do with new virtual text overlays

@weilbith
Copy link
Contributor Author

Next to the indentation on the left side of the buffer, maybe you could limit the width of the review conversation threads? This combined with folds and some header highlighting sounds quite good to me.

@pwntester
Copy link
Owner

Started implementing this at #105

I dont see any way of indenting the comments and vim does not support soft wrapping, so UI may not be optimal :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants