Skip to content

Commit

Permalink
Populate :Ag to quickfix 🔧 via CTRL+A & CTRL+Q
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Leite committed Feb 23, 2018
1 parent 38b2218 commit e1e1cee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ augroup filetypesettings
autocmd FileType snippets setlocal ts=4 sw=4 sts=4 expandtab
augroup END

" Fzf

let $FZF_DEFAULT_OPTS = '--bind ctrl-a:select-all'

function! s:build_quickfix_list(lines)
call setqflist(map(copy(a:lines), '{ "filename": v:val }'))
copen
cc
endfunction

let g:fzf_action = {
\ 'ctrl-q': function('s:build_quickfix_list'),
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }

" Experimenting

if !exists("*s:goyo_enter")
Expand Down

0 comments on commit e1e1cee

Please sign in to comment.