Fix man page completion, support more man page extensions
This commit is contained in:
parent
6ac1ae56fb
commit
f274aba746
|
@ -36,8 +36,8 @@ def -hidden -shell-params _man %{ %sh{
|
||||||
def -shell-params \
|
def -shell-params \
|
||||||
-shell-completion %{
|
-shell-completion %{
|
||||||
prefix=${1:0:${kak_pos_in_token}}
|
prefix=${1:0:${kak_pos_in_token}}
|
||||||
for page in /usr/share/man/*/${prefix}*.1.gz; do
|
for page in /usr/share/man/*/${prefix}*.[1-8]*; do
|
||||||
candidate=$(basename $page .1.gz)
|
candidate=$(basename ${page%%.[1-8]*})
|
||||||
case $candidate in
|
case $candidate in
|
||||||
*\*) ;;
|
*\*) ;;
|
||||||
*) echo $candidate ;;
|
*) echo $candidate ;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user