nvim-telescope/telescope.nvim

New feature: On selection callback for builtins

haug1 opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
It would be nice for (super)users to be able to re-use the core handling of the builtin functions only adding a simple callback function when there's a selected result. In case of selected result, the consumer could optionally override the default handling.

Describe alternatives you've considered

  • copy-pasting the code of builtins into my neovim configuration
  • creating a worse picker that does exactly the same as the builtin, but with less error handling and general compatibility in order to have some simple handling after ensuring the user picked a search result.

Additional context
See draft PR #3058, extremely naive simple implementation of what I want.

Maybe I've overlooked some documentation and code of how this is already implemented. In which case, I would love for someone to tell me how stupid I am.