nvim-telescope / telescope-fzf-native.nvim

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

escaped spaces are weird #9

Closed Conni2461 closed 3 years ago

Conni2461 commented 3 years ago

requires one character too much I'll try to fix that in #8 (discard needs to be handled)

Conni2461 commented 3 years ago

Its a telescope issue :| @tjdevries is trimming the prompt :sob:

https://github.com/nvim-telescope/telescope.nvim/blob/6fd1b3bd255a6ebc2e44cec367ff60ce8e6e6cab/lua/telescope/pickers.lua#L1054-L1058

Can we remove the vim.trim here? Or can i get the full prompt as well (as fourth sorter:sort argument)

Basically prompt input is : \ this should match all files which have a space (spaces are escaped in fzf because they are ands usually) but this vim.trim reduces the prompt to only \ which is wrong.