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

Add discussion list support #643

Merged
merged 27 commits into from
Nov 28, 2024
Merged

Conversation

wd60622
Copy link
Collaborator

@wd60622 wd60622 commented Oct 21, 2024

Ability to list discussions for a repository

Adds the discussion list command

Related to #239

@wd60622 wd60622 added enhancement New feature or request telescope Related to telescope picker labels Oct 21, 2024
@wd60622 wd60622 marked this pull request as ready for review October 21, 2024 20:24
@wd60622
Copy link
Collaborator Author

wd60622 commented Oct 28, 2024

:Octo discussion list command

discussion-list

Currently there is not a buffer that supports interacting with discussion but user can view in the previewer and for URL

@pwntester
Copy link
Owner

Thanks for adding support for discussions @wd60622 Do you want to merge this in before adding a discussion type of buffer? Im ok with showing the preview only and maybe opening it a browser on <CR> for now (until a dedicated octo buffer type is created)

@wd60622
Copy link
Collaborator Author

wd60622 commented Nov 6, 2024

Thats my idea as well. i can break it down a bit more a create issues for it. Currently the <CR> copies the number to register. <C-y> works for url. I havent figured out the how to open discussion in browser just yet. Is that desired <CR> behavior?

@pwntester
Copy link
Owner

From a UX point of view, I think users may expect to "enter" the discussion when pressing CR. If we cant show it in a buffer for now, I think the behaviour that would make more sense is to open it in a browser. You can use https://github.com/pwntester/octo.nvim/blob/master/lua/octo/navigation.lua#L12-L23 for it

@wd60622
Copy link
Collaborator Author

wd60622 commented Nov 7, 2024

From a UX point of view, I think users may expect to "enter" the discussion when pressing CR. If we cant show it in a buffer for now, I think the behaviour that would make more sense is to open it in a browser. You can use https://github.com/pwntester/octo.nvim/blob/master/lua/octo/navigation.lua#L12-L23 for it

Great. I will get to it when I can!

@wd60622 wd60622 requested a review from pwntester November 10, 2024 16:03
@wd60622
Copy link
Collaborator Author

wd60622 commented Nov 10, 2024

Hi @pwntester, thank you for the review. I have added the open in browser functionality. Please take a look and see if it works on your end. I will begin to make some issues for the next steps.

@wd60622 wd60622 mentioned this pull request Nov 10, 2024
6 tasks
@pwntester
Copy link
Owner

Works great, thanks!

@pwntester pwntester merged commit d12e068 into pwntester:master Nov 28, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request telescope Related to telescope picker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants