nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.36k stars 45 forks source link

[Feature request] Adding end criterion #64

Open ajitid opened 2 years ago

ajitid commented 2 years ago

As file name appear at the end of its path, enabling end criterion would result in accurate matches. This feature would also be helpful in the case of :Telescope tags where in the symbols are present at the end of the line.

PS: I'm aware about this package of not keeping feature parity with original FZF. If you find this too much of a work or if this feature feels out of scope for this plugin, we can close this issue.

Conni2461 commented 2 years ago

We could implement this but it needs to happen on telescope core level using :help telescope.defaults.tiebreak.

But we need to extend the sorter api for an optional start and end idx of the match. fzf-native already has these values but we currently dont really do anything with them because telescope dont has any use for them