skim
skim copied to clipboard
tiebreak index does not exist
The readme says
There are five sort keys for results: score, index, begin, end, length, you can specify how the records are sorted by sk --tiebreak score,index,-begin or any other order you want.
However…
https://github.com/lotabout/skim/blob/291fc34c58b1670a5e8c95f1e8f930b82c030b19/src/item.rs#L200-L209
index
does not seem to exist at all??
@valpackett It's a doc error. index
was removed in commit 94846e7. Can't remember exactly why, but possibly sorting by index
could be achieved by --tac
.
Based on the documentation, it seems you are meant to be able to set the priority of tiebreakers by specifying multiple.
From what I can tell, with --tac
you cannot sort at all.
This is rather unfortunate, as what I'd really like to do is sort by score, and then by index, so that newest - perfect matches show up first (in this case I am skimming browser history, sorted by timestamp)