From 6dc17cb3b3ee516d6bfde69b3b44323589b98a2c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 21 Apr 2020 13:18:32 +1000 Subject: [PATCH] Complete man pages from MANPATH as well --- rc/tools/man.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/tools/man.kak b/rc/tools/man.kak index 12661c2c..4879b6e5 100644 --- a/rc/tools/man.kak +++ b/rc/tools/man.kak @@ -55,7 +55,7 @@ define-command -hidden -params 2..3 man-impl %{ evaluate-commands %sh{ define-command -params ..1 \ -shell-script-candidates %{ - find /usr/share/man/ -name '*.[1-8]*' | sed 's,^.*/\(.*\)\.\([1-8][a-zA-Z]*\).*$,\1(\2),' + find /usr/share/man/ $(echo $MANPATH | sed 's/:/ /') -name '*.[1-8]*' | sed 's,^.*/\(.*\)\.\([1-8][a-zA-Z]*\).*$,\1(\2),' } \ -docstring %{ man []: manpage viewer wrapper