echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
5.18k stars 187 forks source link

mini.starter: Allow to choose an item via indices #577

Closed ndavd closed 11 months ago

ndavd commented 11 months ago

Contributing guidelines

Module(s)

mini.starter

Description

As per its README:

  • Choosing an item can be done in two ways:
    • Type prefix query to filter item by matching its name (ignoring case). Displayed information is updated after every typed character. For every item its unique prefix is highlighted.
    • Use Down/Up arrows (or /, or /) and hit Enter.

I presume that a great majority of people who are using this module come from https://github.com/mhinz/vim-startify/ and are used to choosing items by index — Each item has an index and the user can simply enter the corresponding key.

Therefore I propose adding an additional, optional method which could replace the first one mentioned above in the quote for the people who prefer it.

echasnovski commented 11 months ago

Thanks for the suggestion!

Having this as separate way to choose an item does not fit the overall query design. If user wants to use numbers to choose an item, there are at least two options:

Also, here is a configuration similar to 'vim-startify'.

Closing as not planned.

ndavd commented 11 months ago

Thanks!