armindarvish / consult-omni

A Powerful Versatile Omni Search inside Emacs
https://github.com/armindarvish/consult-omni/tree/main
165 stars 4 forks source link

Enable Better handling of new candidates #2

Closed armindarvish closed 4 months ago

armindarvish commented 4 months ago

Is your feature request related to a problem? Please describe. When a new value is selected for example by vertico-exit-input, we should handle the callback actions better.

Describe the solution you'd like This is now possible in consult-omni. However we need to define sensible functions for each source that needs it (for example we should make new buffer or or new notes for consult-omni-buffer and consult-omni-notes, respectively.

This is a continuation from consult-web#31

armindarvish commented 4 months ago

I have enabled running :on-new actions for sources that do not :require-match. I am closing this issue now.

I ended up implementing something similar to @agzam's suggestion in consult-web#31