Managing sorting of multiple sources in consult-omni-multi #42
Labels
back-end and implementation
Question/Discussion on back-end impementation and design
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
The ordering of individual groups within consult-omni-multi appears unpredictable and beyond user control.
For instance, I added a small source that simply appends "Search {query} with DuckDuckGo" and similar options. However, it frequently appears at the top, whereas I’d prefer it to be closer to the bottom.
Screenshot 2024-12-29 at 5 53 33 PM
In the screenshot above, I’m searching for "graph." While it identifies Applications and Agenda entries, it prioritizes a less relevant section.
This behavior isn’t consistent either.
Screenshot 2024-12-29 at 5 53 51 PM
Here, searching for "emoj" includes the same section, but more relevant ones (like the buffer source) are at the top.
The order doesn’t remain static; items occasionally jump around, and I can’t determine what’s causing this inconsistency.
Describe the solution you'd like
An ideal solution would involve dynamic ordering based on a base weight combined with the relevance of the match.
As a starting point, a static ordering based on the sequence in which sources are listed in
consult-omni-multi-sources
would be helpful.This issue may extend beyond
consult-omni
and relate to the underlying behavior ofconsult
and theconsult--multi
API, but my understanding of these systems is insufficient to make that determination.Describe alternatives you've considered
NA
Additional context
All related code is available here
Relevant code in part:
The code for "Static launcher" and "Web search" sources is included in the linked file above
The text was updated successfully, but these errors were encountered: