MiniPick.set_picker_current_index? #1578
-
Contributing guidelines
Module(s)mini.pick QuestionIs there a way of setting the current index? I'm creating a picker which lists files in the same directory as the current file ( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
There currently isn't. The best alternative is emulating As this is a second (pretty valid) use case for adding similar functionality in a span of a week, I'll think about it a bit more. It will probably be something like |
Beta Was this translation helpful? Give feedback.
-
I would also like to have this. Perhaps also relevant: discussion goto alternate. You ask if there is a way to set the current index. I think there is, but it is not trivial. In the code, I am using the |
Beta Was this translation helpful? Give feedback.
-
This is now possible on latest A more appropriate name now would have been Hope this will help making some interesting picker behavior a bit easier. |
Beta Was this translation helpful? Give feedback.
This is now possible on latest
main
withMiniPick.set_picker_match_inds({ ind }, 'current')
.A more appropriate name now would have been
set_picker_inds
, but decided to not introduce another breaking change (there is already a lot in the current release).Hope this will help making some interesting picker behavior a bit easier.