summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-01 15:02:04 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-01 15:02:04 +0200
commitd76ce852668635d81778cedacc2d3f021ed4e475 (patch)
tree6c8ccf04f39953233f1cd46ef647888976053e5d /runtime
parenta796d46f29e3cc235cc981696d7ee80faccb5000 (diff)
downloadvim-git-8.0.1782.tar.gz
patch 8.0.1782: no simple way to label quickfix entriesv8.0.1782
Problem: No simple way to label quickfix entries. Solution: Add the "module" item, to be used instead of the file name for display purposes. (Martin Szamotulski, closes #1757)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt3
-rw-r--r--runtime/doc/quickfix.txt6
2 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 0e611f4f1..050b48960 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4737,6 +4737,7 @@ getqflist([{what}]) *getqflist()*
list item is a dictionary with these entries:
bufnr number of buffer that has the file name, use
bufname() to get the name
+ module module name
lnum line number in the buffer (first line is 1)
col column number (first column is 1)
vcol |TRUE|: "col" is visual column
@@ -7221,6 +7222,8 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
buffer
filename name of a file; only used when "bufnr" is not
present or it is invalid.
+ module name of a module; if given it will be used in
+ quickfix error window instead of the filename.
lnum line number in the file
pattern search pattern used to locate the error
col column number
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt
index de80c68ad..96085d2e2 100644
--- a/runtime/doc/quickfix.txt
+++ b/runtime/doc/quickfix.txt
@@ -1220,6 +1220,7 @@ you want to match case, add "\C" to the pattern |/\C|.
Basic items
%f file name (finds a string)
+ %o module name (finds a string)
%l line number (finds a number)
%c column number (finds a number representing character
column of the error, (1 <tab> == 1 character column))
@@ -1264,6 +1265,11 @@ conversion can be used to locate lines without a line number in the error
output. Like the output of the "grep" shell command.
When the pattern is present the line number will not be used.
+The "%o" conversion specifies the module name in quickfix entry. If present
+it will be used in quickfix error window instead of the filename. The module
+name is used only for displaying purposes, the file name is used when jumping
+to the file.
+
Changing directory
The following uppercase conversion characters specify the type of special