VonHeikemen / fine-cmdline.nvim

Enter ex-commands in a nice floating input.
MIT License
445 stars 7 forks source link

Add new hooks `on_update`? #25

Closed MSDimos closed 2 years ago

MSDimos commented 2 years ago

As document mentioned, there are only there hooks supported.

I want to redraw the searchbox when the search result changes, for example:

image

5 is current index, 10 is the count of the search result.

I know that I can use on_done to do it, but it's too hard to code. Is there any possibility to add a new hook named on_update(input, value, current_index, total_count)?

I have read the source code, maybe we can trigger on_update here ? image