Closed milogert closed 8 months ago
Thanks for the PR, looks great! Will review ASAP
Cant wait to see this merged guys, the only reason I have Telescope installed is Octo. Thanks for this.
@Cih2001 for what it's worth, fzf-lua is already supported in Octo.nvim. This PR extends that support (even beyond Telescope's support) with Projects V2 additions. The bulk of Octo works just fine though
Oh I see, that's really missing in the documentations. Had to look at the config.lua file to guess that. Thanks for letting me know.
@milogert sorry for the late review. Can you please rebase against master?
I believe I am.. Right? I might be missing something though. My GitHub ui says that I'm just 8 commits ahead of master and no commits behind it
Yep, just pushed changes up over lunch :) Thanks for the eyes!
Thanks you for the contribution!
Hello,
I see this PR has already been reverted by https://github.com/pwntester/octo.nvim/pull/474
I guess because of the error about gh
token not having the projects
permission.
Just wanna share that I can overcome that.
I manually created a token with the permission. Then gh auth login
, and use the option to fill an existing token instead of auto generating.
So I think this feature should be updated to be auto-available when the token has the permission.
Describe what this PR does / why we need it
This PR implements the projects v2 interface as well as the picker for fzf-lua.
Adds:
add
,move
, andremove
I went withset
andremove
. I The flow of projects v2 changed a bit andadd
andmove
felt a little too similar.default_to_projects_v2
, which makes thecard
command default to use projects v2. Both versions are still available under thecardlegacy
andcardv2
commands, regardless of this setting.Does this pull request fix one issue?
Addresses https://github.com/pwntester/octo.nvim/discussions/414
Describe how you did it
Followed the pattern of the other cards command. As noted above I changed the interface for the new command slightly, but to something that made sense to me and how projects v2 flowed.
Describe how to verify it
Mess around with projects v2 inside Octo. Everything should work as expected.
Special notes for reviews
I added two small additions as riders:
These are tiny changes that are just QoL adds for fzf-lua.
Also I updated the README to account for some fzf-lua changes as well.