-
-
Notifications
You must be signed in to change notification settings - Fork 268
feat: add snacks.picker integration #1654
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
base: master
Are you sure you want to change the base?
Conversation
The problem detected by linters has been fixed. (I guess 😉) |
Sorry, I'm not very familiar with ruby testing. I'm not sure why the e2e tests failed, but maybe restarting them could help? |
Yea that looks like a git thing, not something you would have changed. I'll try to review this soon - I have 3 month old twins at home so I'm on a bit of a forced programming break 😉 |
@CKolkey |
Hey! I was testing this out and noticed that the stash's drop picker doesn't seem to be working properly. the ones you select to drop are actually kept, and the ones that weren't selected are dropped, which is the opposite of what I'd expect it to do. EDIT: |
I compared the result from snacks and vi.ui.select, there is no difference between them. However I have also noticed the weird handling when I tried to rename my stashes, sometimes after I entered new name, the stash will be dropped! And I tested both snacks & vim.ui.select, and I believe that is the issue from Neogit itself, the fuzzy finder part is not related. |
Can't reproduce this. The only weirdness I noticed is that renaming stashes doesn't focus the input box straight away, I have to My initial comment was purely my fault, I expected that selecting multiple stashes with |
I have tested this out as well as just using In the meantime, I have opened an issue here: folke/snacks.nvim#1561 |
a77dd53
to
838e522
Compare
The value of a proper integration beyond just overloading That allows valid git refs to be used if the input field contains certain characters, something that wouldn't be possible without overloading the "on_select" function. Ideally a proper snacks integration would include this logic too, since otherwise it's not much more than overloading @fang2hou does that make sense, and is that something you can look into? |
I've been using this PR daily and can vouch that it works well. Would be nice for it to get merged so that I don't have to keep a fork :) |
Add integration support for the new picker
snacks.picker
, which may become the default picker in future LazyVim releases.I have tested this integration with both single selection (for branch checkout) and multiple selection (for resetting multiple files).
sample.mp4