1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-27 02:23:26 +03:00

rc: Consistently use a dot as template separator

Other scripts uses a dot `.` to separate the seed from the rest of
the template, making that standard across the codebase allows running
cleanup commands like `rm -rf /tmp/kak-*.*`.
This commit is contained in:
Frank LENORMAND 2020-11-30 14:24:06 +03:00
parent 14f7d2637c
commit a548caaebe
2 changed files with 5 additions and 5 deletions

View File

@ -16,8 +16,8 @@ define-command format-selections -docstring "Format the selections individually"
}
evaluate-commands -draft -no-hooks -save-regs '|' %{
set-register '|' %{
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter-XXXXXX)"
format_in="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"
format_out="$(mktemp "${TMPDIR:-/tmp}"/kak-formatter.XXXXXX)"
cat > "$format_in"
eval "$kak_opt_formatcmd" < "$format_in" > "$format_out"

View File

@ -33,9 +33,9 @@ define-command -hidden -params ..3 man-impl %{ evaluate-commands %sh{
exit
fi
shift
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man-XXXXXX)
manout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
manerr=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
colout=$(mktemp "${TMPDIR:-/tmp}"/kak-man.XXXXXX)
env MANWIDTH=${kak_window_range##* } man "$@" > "$manout" 2> "$manerr"
retval=$?
col -b -x > ${colout} < ${manout}