wincent/ferret

how to show full path ?

Closed this issue · 4 comments

image

Recently,i updated my vim plugins and search result in quickfix show like this.
I checked my plugins and guess ferret may cause the change.
I google it and find nothing about it.
Anybody can do me a favor? thanks

It's going to show the results via the :cexpr command or similar, and IIRC it doesn't modify the paths it gets from the underlying search tool. So for example, if the underlying search tool is rg, it will end up executing a command like rg --vimgrep --no-heading --no-config --max-columns 4096 your-search-pattern, which will returns results relative to the current working directory.

Getting the search tool to output absolute paths is something I've not looked into; I think most of them probably don't provide an option for it, so you might have to create a wrapper that converts their relative paths to absolute paths. Even if you do that, it's possible that Vim may choose to show the result as relative to the current working directory; I don't know.

Possibly due to this change? romainl/vim-qf@2e385e6

@jparise Good hypothesis. Looks very likely, if the "c", "d" etc prefixes in @lsaint's screenshot are abbreviations.

thank you guys. that 's what i looking for. sorry for my expression not so accurately.