We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
man fzf
I've been racking my mind on this for a few days now.
here is my config:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' nnoremap <silent> <Leader>t :Files<CR> nnoremap <silent> <Leader>g :GFiles<CR> nnoremap <silent> <Leader>b :Buffers<CR> nnoremap <silent> <Leader>h :Helptags<CR> nnoremap <Leader>a :Rg<Space> " [Buffers] Jump to the existing window if possible let g:fzf_buffers_jump = 1 " [[B]Commits] Customize the options used by 'git log': let g:fzf_commits_log_options = '--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"' " [Tags] Command to generate tags file let g:fzf_tags_command = 'ctags -R' " An action can be a reference to a function that processes selected lines function! s:build_quickfix_list(lines) call setqflist(map(copy(a:lines), '{ "filename": v:val }')) copen cc endfunction " Override default ctrl action for h-split let g:fzf_action = { \ 'ctrl-q': function('s:build_quickfix_list'), \ 'ctrl-t': 'tab split', \ 'ctrl-s': 'split', \ 'ctrl-v': 'vsplit' } " if exists('$TMUX') " let g:fzf_layout = { 'tmux': '-p90%,60%' } " else " let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } " endif let $FZF_DEFAULT_OPTS = '--layout=reverse --inline-info' let $FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git/**'" " Customize fzf colors to match your color scheme let g:fzf_colors = \ { 'fg': ['fg', 'Normal'], \ 'bg': ['bg', 'Normal'], \ 'hl': ['fg', 'Comment'], \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], \ 'hl+': ['fg', 'Statement'], \ 'info': ['fg', 'PreProc'], \ 'border': ['fg', 'Ignore'], \ 'prompt': ['fg', 'Conditional'], \ 'pointer': ['fg', 'Exception'], \ 'marker': ['fg', 'Keyword'], \ 'spinner': ['fg', 'Label'], \ 'header': ['fg', 'Comment'] } "Get Files " command! -bang -nargs=? -complete=dir Files " \ call fzf#vim#files(<q-args>, fzf#vim#with_preview({'options': ['--layout=reverse', '--inline-info']}), <bang>0) " Original Rg command " command! -bang -nargs=* Rg call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case ".shellescape(<q-args>), 1, <bang>0) " New Rg command command! -bang -nargs=* Rg call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case ".<q-args>, 1, <bang>0)
I do the following:
:Files
<TAB>
Ctrl-Q
:cfdo %s/blah/yadda/g
Interestingly enough, if I replace :Files with :Rg the :cfdo does work...
:Rg
:cfdo
It feels like the quickfix list is not being properly populated, but I'm basically flummoxed... Any help would be greatly appreciated.
🙏
The text was updated successfully, but these errors were encountered:
bump.
Sorry, something went wrong.
It seems to work if I add lnum.
lnum
function! s:build_quickfix_list(lines) call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }')) copen cc endfunction
It is not clear why it doesn't work without lnum. I couldn't find any hint in the documentation.
junegunn/fzf@1116e48
No branches or pull requests
man fzf
)I've been racking my mind on this for a few days now.
here is my config:
I do the following:
:Files
<TAB>
Ctrl-Q
which populates the quickfix list:cfdo %s/blah/yadda/g
and..... NOTHING HAPPENS..Interestingly enough, if I replace
:Files
with:Rg
the:cfdo
does work...It feels like the quickfix list is not being properly populated, but I'm basically flummoxed... Any help would be greatly appreciated.
🙏
The text was updated successfully, but these errors were encountered: