Control of sort order of cape-history #123
-
|
I like to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @ashlineldridge! Actually UI sorting should be disabled for both
The sorting is also preserved when moving to the minibuffer. I just tried |
Beta Was this translation helpful? Give feedback.
-
|
Hey! Hmmm, interesting... I get inconsistent results between If I follow the above steps, My preference is for the time order of history to take precedence, which seems to be what's happening with |
Beta Was this translation helpful? Give feedback.
Ah okay, I see. I think the reason is that Corfu explicitly sorts prefix completions earlier. Here you entered the prefix "fd" and "fd -h" takes precedence. See
corfu--move-prefix-candidates-to-front:https://github.com/minad/corfu/blob/cdc3e13ad312f5f12b3f78f842fff0b398eb4473/corfu.el#L588
You could override this function with an advice. But generally I find this behavior more aligned with expectations - but maybe not in the case of histories.