cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.76k stars 176 forks source link

Sorting by time is not sorting by time #282

Closed yshui closed 1 year ago

yshui commented 1 year ago

Setting sorting to LAST_RUN, or use F1 to switch sorting option to "Sort to Time", and the result is not sorted by time.

a

yshui commented 1 year ago

I think this is because MCFLY_FUZZY is not 0, which I think is a surprising behavior. Sort by time should sort strictly by time.

This happens even when search term is empty, I think fuzziness shouldn't have an effect when no search term is set?

navazjm commented 1 year ago

I agree with you. I think sort by time should sort strictly by time. I have created a PR with a fix for this issue