skim icon indicating copy to clipboard operation
skim copied to clipboard

tiebreak index does not exist

Open valpackett opened this issue 11 months ago • 2 comments

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 avatar Aug 07 '23 04:08 valpackett

@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.

lotabout avatar Aug 08 '23 02:08 lotabout

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)

blueforesticarus avatar Feb 29 '24 20:02 blueforesticarus