Merge remote-tracking branch 'lenormf/fix-temporary-dir-template'
This commit is contained in:
commit
ce97c0dd17
|
@ -16,8 +16,8 @@ define-command format-selections -docstring "Format the selections individually"
|
||||||
}
|
}
|
||||||
evaluate-commands -draft -no-hooks -save-regs '|' %{
|
evaluate-commands -draft -no-hooks -save-regs '|' %{
|
||||||
set-register '|' %{
|
set-register '|' %{
|
||||||
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
|
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"
|
||||||
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
|
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"
|
||||||
|
|
||||||
cat > "$format_in"
|
cat > "$format_in"
|
||||||
eval "$kak_opt_formatcmd" < "$format_in" > "$format_out"
|
eval "$kak_opt_formatcmd" < "$format_in" > "$format_out"
|
||||||
|
|
|
@ -33,9 +33,9 @@ define-command -hidden -params ..3 man-impl %{ evaluate-commands %sh{
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
|
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
|
||||||
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
|
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
|
||||||
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
|
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
|
||||||
env MANWIDTH=${kak_window_range##* } man "$@" > "$manout" 2> "$manerr"
|
env MANWIDTH=${kak_window_range##* } man "$@" > "$manout" 2> "$manerr"
|
||||||
retval=$?
|
retval=$?
|
||||||
col -b -x > ${colout} < ${manout}
|
col -b -x > ${colout} < ${manout}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user