diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2020-11-30 14:24:06 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2020-11-30 14:24:06 +0300 |
| commit | a548caaebeebb6ecae895bfe2e94a204dbafee66 (patch) | |
| tree | e761035df5be23fdb9ee3ba9c9a694b9e14caa08 | |
| parent | 14f7d2637c80258d80e5ae204e16dbb67a896ebc (diff) | |
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-*.*`.
| -rw-r--r-- | rc/tools/format.kak | 4 | ||||
| -rw-r--r-- | rc/tools/man.kak | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/rc/tools/format.kak b/rc/tools/format.kak index ee52dd1d..72d71430 100644 --- a/rc/tools/format.kak +++ b/rc/tools/format.kak @@ -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" diff --git a/rc/tools/man.kak b/rc/tools/man.kak index 730bc29d..ecf237bd 100644 --- a/rc/tools/man.kak +++ b/rc/tools/man.kak @@ -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} |
