[mini.pick] Augment -all- pickers with labels and hotkeys #1109
abeldekat
started this conversation in
Show and tell
Replies: 4 comments 18 replies
|
That's a huge amount of tweaking and looks nice! My initial hope was that implementing a more general "make picker labeled" function was going to be somehow cleaner. But indeed having to override Couple of thoughts:
|
15 replies
|
Quite lovely! thank for sharing, will try it out; |
2 replies
|
I refactored the code into a separate internal plugin: ak.mini.pick_hinted |
0 replies
|
Thanks for the commit allowing MiniPick.start() customization for vim.ui.select. I was able to remove some redundant lines from "pick_hinted" |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mini_pick_labeled.mp4
Initially, I implemented Pick buffers with labels, discussed here. The motivation for doing so is also explained.
@echasnovski, I implemented your suggestion:
The code is contained in a single lua module which can be loaded after
mini.pickhas beensetup.I was not able to follow your suggestions literally. Hopefully the comments in the code explain why.
mini_pick_labeled.lua
EDIT: 20240805, refactored version
mini_pick_labeled
EDIT: 20240808, Using
autocommandMiniPickStart:mini_pick_labeled
EDIT: 20240811, fixed special case:
mini_pick_labeled
EDIT 20240826, latest version(20260710):
I refactored the code into a separate internal module: akextra.pick_hinted
pick_hinted
All reactions