Closed mqrris closed 2 months ago
fzf needs to know the file path and the line number to go to the position, so you can't use an rg
command that doesn't print them. However, you can hide the parts using --with-nth
option like so.
" command (string), [spec (dict)], [fullscreen (bool)]
command! -bang -nargs=* Rg call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case -- ".fzf#shellescape(<q-args>), { 'options': '--with-nth 4..' }, <bang>0)
You should note that --with-nth
makes fzf slower.
As well as this padding:
Nope, not possible. One column is for "pointer" and another is for "marker" (for --multi
selection).
man fzf
)[x] I have searched through the existing issues
To reproduce screenshots:
I'd also liked to know how to remove "Rg>" prompt from
Rg
and "~/" fromFZF
.As well as this padding:
The only reason I'm doing this is to save my screen estate. I know it's probably unfeasible, but I'm gonna ask anyway.