File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
-
2
- decl str doc_path " /usr/share/doc/kak/manpages"
3
-
4
1
def -hidden -params 1 ..2 _doc-open %{
5
2
%sh{
6
3
manout=$( mktemp /tmp/kak-man-XXXXXX)
7
4
colout=$( mktemp /tmp/kak-man-XXXXXX)
8
5
9
- MANWIDTH=${kak_window_width} man -l " $1 " > $manout
6
+ MANWIDTH=${kak_window_width} man " $1 " > $manout
10
7
retval=$?
11
8
12
9
col -b -x > ${colout} < ${manout}
@@ -32,13 +29,13 @@ def -hidden -params 1..2 _doc-open %{
32
29
33
30
def -params 1 ..2 \
34
31
-shell-completion %{
35
- find " ${kak_opt_doc_path} " -type f -iname " *$@*.gz" -printf ' %f\n' | while read l; do
32
+ find " ${kak_runtime}/../doc/kak/manpages/ " -type f -iname " *$@*.gz" -printf ' %f\n' | while read l; do
36
33
echo " ${l%.*}"
37
34
done
38
35
} \
39
36
doc -docstring " Open a buffer containing the documentation about a given subject" %{
40
37
%sh{
41
- readonly PATH_DOC=" ${kak_opt_doc_path} /${1} .gz"
38
+ readonly PATH_DOC=" ${kak_runtime} /../doc/kak/manpages /${1} .gz"
42
39
43
40
shift
44
41
if [ ! -f " ${PATH_DOC} " ]; then
Original file line number Diff line number Diff line change
1
+ ../../../doc/manpages
You can’t perform that action at this time.
0 commit comments