Use trimmed length when --nth is used with --tiebreak=length
This change improves sort ordering for aligned tabular input. Given the following input: apple juice 100 apple pie 200 fzf --nth=2 will now prefer the one with pie. Before this change fzf compared "juice " and "pie ", both of which have the same length.
Showing
- src/item.go 10 additions, 9 deletionssrc/item.go
- src/pattern.go 12 additions, 11 deletionssrc/pattern.go
- src/tokenizer.go 3 additions, 2 deletionssrc/tokenizer.go
- src/tokenizer_test.go 6 additions, 6 deletionssrc/tokenizer_test.go
- src/util/util.go 26 additions, 0 deletionssrc/util/util.go
- src/util/util_test.go 20 additions, 0 deletionssrc/util/util_test.go
- test/test_go.rb 47 additions, 0 deletionstest/test_go.rb
Loading
Please register or sign in to comment