fzf.vim
fzf.vim copied to clipboard
Add configuration to switch between quickfix and loclist
Use variable 'g:fzf_list_type' to switch between quickfix and location list. " Use quickfix (default option) let g:fzf_list_type = 1 " Use location list let g:fzf_list_type = 2
This looks like it would address #432 and #448
I would appreciate this functionality as well. Unique search results for individual tabs are something I use frequently. I just switched from ctrlp to fzf with this commit, and will report any issues.
I would suggest a change though: use the same behavior for the Ag handler. I changed
https://github.com/junegunn/fzf.vim/blob/52fbef6eb3ff99db9d8ed2a91fcebe4e66e01d53/autoload/fzf/vim.vim#L690
to
if get(g:, 'fzf_list_type', 1) == 1
call s:fill_quickfix(list, 'cfirst')
else
call s:fill_loclist(list, 'lfirst')
endif
Thanks to all the authors, so far this plugin is spectacular!
@junegunn can you pls approve that old PR?
@junegunn Please let me know if there's something you don't like about the proposed implementation. I'm happy to rework it in 2023.
I'm still very excited about this. Please let me know how I can help.
let g:fzf_vim = {}
let g:fzf_vim.listproc = { list -> fzf#vim#listproc#location(list) }
" Per command (listproc_{command_name_in_lowercase})
let g:fzf_vim.listproc_rg = { list -> fzf#vim#listproc#quickfix(list) }