Skip to content

Commit

Permalink
Preparing next release
Browse files Browse the repository at this point in the history
  • Loading branch information
romainl committed Apr 5, 2016
1 parent 22bc9b8 commit a5ba706
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 15 deletions.
12 changes: 6 additions & 6 deletions autoload/qf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ endfunction

function qf#JumpFileChunk(down) abort
let l:start_file_path = qf#GetFilePath(getline('.'))
let l:direction = a:down ? 'j' : 'k'
let l:end = a:down ? '$' : 1
let l:direction = a:down ? 'j' : 'k'
let l:end = a:down ? '$' : 1
while l:start_file_path == qf#GetFilePath(getline('.')) && getline('.') != getline(l:end)
execute 'normal! ' . l:direction
endwhile
Expand All @@ -57,16 +57,16 @@ function qf#WrapCommand(direction, prefix)
if exists("b:isLoc")
if a:direction == "up"
try
execute a:prefix . "previous"
execute a:prefix . "previous"
catch /^Vim\%((\a\+)\)\=:E553/
execute a:prefix . "last"
execute a:prefix . "last"
catch /^Vim\%((\a\+)\)\=:E\%(776\|42\):/
endtry
else
try
execute a:prefix . "next"
execute a:prefix . "next"
catch /^Vim\%((\a\+)\)\=:E553/
execute a:prefix . "first"
execute a:prefix . "first"
catch /^Vim\%((\a\+)\)\=:E\%(776\|42\):/
endtry
endif
Expand Down
61 changes: 52 additions & 9 deletions doc/qf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ vim-qf – short for "vim-quickfix" – is a small collection of settings,
commands and mappings put together to make working with the quickfix
list/window smoother.

Here is a list of the features provided by this plugin:
Here are the features provided by this plugin:

- disable soft-wrapping in the quickfix window,
- disable relative numbers in the quickfix window,
Expand All @@ -36,6 +36,7 @@ Here is a list of the features provided by this plugin:
- open the location/quickfix window automatically after |:make|, |:grep|,
|:lvimgrep| and friends if there are valid locations/errors
- quit Vim if the last window is a location/quickfix window
- jump to next group of entries belonging to same file ("file grouping")

==============================================================================
2. INSTALLATION *qf-installation*
Expand Down Expand Up @@ -71,14 +72,19 @@ on Windows... >
==============================================================================
3. CONFIGURATION *qf-configuration*

Available mappings:
Available global mappings:

<Plug>QfCprevious ............................. |QfCprevious|
<Plug>QfCnext ................................. |QfCnext|
<Plug>QfLprevious ............................. |QfLprevious|
<Plug>QfLnext ................................. |QfLnext|
<Plug>QfSwitch ................................ |QfSwitch|

Available local mappings:

{ ............................................. |QfPreviousFile|
} ............................................. |QfNextFile|

Available options:

qf_mapping_ack_style .......................... |qf_mapping_ack_style|
Expand All @@ -87,6 +93,9 @@ Available options:
------------------------------------------------------------------------------
*QfCprevious*
*QfCnext*
Scope: global ~
Default: none ~

Go up and down the quickfix list and wrap around.

Example: >
Expand All @@ -97,6 +106,9 @@ Example: >
------------------------------------------------------------------------------
*QfLprevious*
*QfLnext*
Scope: global ~
Default: none ~

Go up and down the location list and wrap around.

Example: >
Expand All @@ -106,12 +118,23 @@ Example: >
<
------------------------------------------------------------------------------
*QfSwitch*
Scope: global ~
Default: none ~

Jump to and from the location/quickfix window.

Example: >
nnoremap ç <Plug>QfSwitch
<
------------------------------------------------------------------------------
*QfPreviousFile*
*QfNextFile*
Scope: local ~
Default: { and } ~

Jump to the next group of lines corresponding to a file.

------------------------------------------------------------------------------
*'qf_mapping_ack_style'*
Value: numeric ~
Expand Down Expand Up @@ -149,15 +172,25 @@ Example: >
The following commands are available when the location/quickfix window
is focused:

*:Filter*
*:Keep*

Removes every item that doesn't match with the supplied argument,
either in the filename or in the description. Note: no regular
expressions.
Removes all entries that don't contain the given argument, either in the
filename or in the description. Note: the argument is not a regular
expression pattern.

Example: >
:Filter model
:Keep model
>
*:Reject*

Removes all entries that contain the given argument in the filename or
in the description. Note: the argument is not a regular expression
pattern.

Example: >
:Reject build
>
*:Restore*

Expand All @@ -181,6 +214,16 @@ is focused:
:Dofile norm @q
<
NOTE: In most cases it is possible to only type a few characters to
disembiguate commands. Assuming you don't already have custom commands with
clashing names, you can shorten the commands above to:

|:Keep| ....................................... :K
|:Reject| ..................................... :Rej
|:Restore| .................................... :Res
|:Doline| ..................................... :Dol
|:Dofile| ..................................... :Dof

==============================================================================
5. ACKNOWLEGEMENTS *qf-acknowledgements*

Expand All @@ -196,11 +239,11 @@ The "Ack.vim-inspired mappings" are adapted from Ack.vim:
- http://stackoverflow.com/a/4793316/546861
- http://stackoverflow.com/a/5686810/546861

|:Filter| is adapted from the answers in this thread:
|:Keep| and |:Reject| are adapted from the answers in this thread:

- http://stackoverflow.com/q/15406138/546861

All the templates used to turn this multifarious snippets collection into
All the templates used to turn this multifarious collection of snippets into
a proper plugin come from Barry Arthur's Area 41 plugin:

- https://github.com/dahu/Area-41
Expand Down

0 comments on commit a5ba706

Please sign in to comment.