autojump
autojump copied to clipboard
Fix duplicate matches
Fixes #348, also addressing a couple warnings I stumbled upon.
@wting can you approve this PR? The duplicate results are the only thing keeping me from switching back from Zoxide.
The first version had an issue that the results weren't sorted and thus one would typically jump to a random directory instead of the chosen one. The new push fixes the issue by sorting the set.
autojump
is a PITA to work on, for the test coverage is quite poor :-(. The change breaks jc
functionality, please don't merge. Will have to add jc
regression test first and fix it.