echasnovski / mini.nvim

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

Adding Pick autocmds #860

Closed bassamsdata closed 2 months ago

bassamsdata commented 2 months ago

Contributing guidelines

Module(s)

mini.pick, mini.extra

Description

Hey,

I'd like to suggest adding a picker for autocommands, which would help in searching for autocommands scattered throughout our configurations.

Here's why I'm suggesting this:

Searching through the name or description of autocommands can be more effective, especially during debugging. While the :autocmd command exists, it's not always sufficient due to its appearance and limited search terms beyond the event itself. Additionally, it's worth noting that FZF-lua and Telescope already offer this feature. though it's not a reason by itself :)

I believe this would be a nice addition, but I understand if it's not a top priority. and If it's not straightforward to implement, no pressure.

Thanks!

echasnovski commented 2 months ago

Thanks for the suggestion!

I don't think I see autocommand picker as sufficiently useful (and used) to be included in 'mini.extra'. Also because it would require quite a lot of testing because there are many filtering options to autocommands available.

Closing as not planned.


Here is a rough outline of how this can be implemented manually:

bassamsdata commented 2 months ago

No problem, thanks for the prompt response and the info.