[mini.pick] Augment -all- pickers with labels and hotkeys #1109
Replies: 4 comments 17 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:
|
Beta Was this translation helpful? Give feedback.
-
|
Quite lovely! thank for sharing, will try it out; |
Beta Was this translation helpful? Give feedback.
-
|
I refactored the code into a separate internal plugin: ak.mini.pick_hinted |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the commit allowing MiniPick.start() customization for vim.ui.select. I was able to remove some redundant lines from "pick_hinted" |
Beta Was this translation helpful? Give feedback.
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: Added more comments and some minor code consistency improvements
EDIT: 20240805, refactored version
mini_pick_labeled refactored version
EDIT: 20240808, Using
autocommandMiniPickStart:mini_pick_labeled using autocommand
EDIT: 20240809, trying to fix a special case:
mini_pick_labeled
EDIT: 20240811, fixed special case:
mini_pick_labeled latest version
EDIT 20240826:
I refactored the code into a separate internal plugin: ak.mini.pick_hinted
Beta Was this translation helpful? Give feedback.
All reactions