joshmedeski / t-smart-tmux-session-manager

t - the smart tmux session manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prioritize zoxide results by score

joshmedeski opened this issue · comments

As a user, I want my fzf results to sort zoxide results prioritized by their score.

  • Currently sorts in a random order when calling zoxide query -l
  • Even if displaying the score with zoxide query -ls the score values aren't prioritized when filtering down with fzf.

I think if you pipe the results of zoxide query -ls to fzf with the --no-sort flag, it should work. It looks a bit strange at first, but zoxide query -ls already sorts by score, so we'd want to opt out of fzf's sorting algo

@TxHawks do you know if not including the -s flag will still return the results by score? I tried it an it seems to be working fine on my end. I don't want to display the score values in the tmux plugin, just sort by the score rating.

It should. To the best of my knowledge, -s doesn't change the sorting algorithm (frecency), only prints the score