-
Is there a way to have the buffers and smart pickers always sort the alternate file on top, so that opening the smart picker and immediately pressing enter goes to the previous buffer? Alternatively, is there a way to influence the score via transforms or filters or would an entire custom picker be the only way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
I somewhat got the Snacks.picker.smart({
multi = { { source = "buffers", current = false }, "files" },
sort = {
fields = { "source_id:asc", "flags", "score:desc", "#text", "idx" },
},
}) But it has the issue, that it is quite aggressive and will keep showing buffers on top even if something else fits better to what you type. Ideally there would be a way to set an initial sort order and as soon as you start typing it sorts by |
Beta Was this translation helpful? Give feedback.
Changed it so that the score gets set right before calling
on_match