From e6c21c4bc0c4e657bddd2f76946df305fa022f13 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 1 Apr 2019 02:34:06 +0200 Subject: vim-patch:8.0.1782: no simple way to label quickfix entries 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) https://github.com/vim/vim/commit/d76ce852668635d81778cedacc2d3f021ed4e475 --- runtime/doc/eval.txt | 2 ++ runtime/doc/quickfix.txt | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 54f4f3d8c3..1e0c462125 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7064,6 +7064,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 7aa81f612b..d20a91dc2d 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1204,6 +1204,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 == 1 character column)) @@ -1248,6 +1249,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 -- cgit From 720cb36cea5fab51e6a358d56e8368c97349a89f Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 19 Apr 2019 22:29:40 +0200 Subject: doc: update setqflist() --- runtime/doc/eval.txt | 3 --- 1 file changed, 3 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1e0c462125..8eca463c7f 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7110,9 +7110,6 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()* freed. To add a new quickfix list at the end of the stack, set "nr" in {what} to "$". - If {title} is given, it will be used to set |w:quickfix_title| - after opening the quickfix window. - If the optional {what} dictionary argument is supplied, then only the items listed in {what} are set. The first {list} argument is ignored. The following items can be specified in -- cgit