diff --git a/after/ftplugin/qf.vim b/after/ftplugin/qf.vim index cb79100..97d91e0 100644 --- a/after/ftplugin/qf.vim +++ b/after/ftplugin/qf.vim @@ -1,6 +1,6 @@ " vim-qf - Tame the quickfix window " Maintainer: romainl -" Version: 0.0.6 +" Version: 0.0.7 " License: Vim License (see :help license) " Location: after/ftplugin/qf.vim " Website: https://github.com/romainl/vim-qf @@ -17,10 +17,12 @@ let b:undo_ftplugin = "setl fo< com< ofu<" " text wrapping is pretty much useless in the quickfix window setlocal nowrap + " relative line numbers don't make much sense either " but absolute numbers do setlocal norelativenumber setlocal number + " we don't want quickfix buffers to pop up when doing :bn or :bp set nobuflisted @@ -55,8 +57,10 @@ if exists("g:qf_mapping_ack_style") endif " filter the location/quickfix list +" (kept for backward compatibility) " usage: -" :Filter foo +" :Filter foo <-- same as :Keep foo +" :Filter! foo <-- same as :Reject foo command! -buffer -nargs=1 -bang Filter call qf#FilterList(, expand("") == "!" ? 1 : 0) " keep entries matching the argument @@ -84,13 +88,13 @@ command! -buffer -nargs=1 Doline call qf#DoList(1, ) " :Dofile %s/^/--- command! -buffer -nargs=1 Dofile call qf#DoList(0, ) -" experimental feature +" TODO: allow customization " jump to previous/next file grouping nnoremap } :call qf#NextFile() nnoremap { :call qf#PreviousFile() " quit Vim if the last window is a quickfix window -autocmd qf BufEnter if winnr('$') < 2 | q | endif +autocmd qf BufEnter if winnr('$') < 2 | q | endif autocmd qf BufWinEnter call qf#ReuseTitle() let &cpo = s:save_cpo diff --git a/autoload/qf.vim b/autoload/qf.vim index 96afa1d..10f742e 100644 --- a/autoload/qf.vim +++ b/autoload/qf.vim @@ -1,6 +1,6 @@ " vim-qf - Tame the quickfix window " Maintainer: romainl -" Version: 0.0.6 +" Version: 0.0.7 " License: Vim License (see :help license) " Location: autoload/qf.vim " Website: https://github.com/romainl/vim-qf @@ -13,8 +13,7 @@ let s:save_cpo = &cpo set cpo&vim -" experimental feature -" jump to previous/next file chunk +" jump to previous/next file grouping function qf#GetFilePath(line) abort return substitute(a:line, '|.*$', '', '') " | | +- no flags diff --git a/plugin/qf.vim b/plugin/qf.vim index b11a328..871d246 100644 --- a/plugin/qf.vim +++ b/plugin/qf.vim @@ -1,6 +1,6 @@ " vim-qf - Tame the quickfix window " Maintainer: romainl -" Version: 0.0.6 +" Version: 0.0.7 " License: Vim License (see :help license) " Location: plugin/qf.vim " Website: https://github.com/romainl/vim-qf @@ -34,7 +34,7 @@ nnoremap QfSwitch &filetype == "qf" ? "p" : "b" augroup qf autocmd! autocmd QuickFixCmdPost [^l]* cwindow - autocmd QuickFixCmdPost l* lwindow + autocmd QuickFixCmdPost l* lwindow augroup END let &cpo = s:save_cpo