summaryrefslogtreecommitdiff
path: root/rc/tools/format.kak
AgeCommit message (Collapse)Author
2022-04-09rc format: restore in-client error when formatcmd failsJohannes Altmanninger
Commit 5b1f9255 (rc: Use the standard `fail` command to report errors, 2019-11-14) replaced uses of "echo -markup {Error}" with "fail". This made format-buffer do echo "eval -client $kak_client %{ fail }" | kak -p $kak_session Unfortunately "fail" fails in the client spawned by "kak -p" and not in $kak_client where the user would see the message. Correct this. While at it, clarify the error message, so users immediately know that the number is the exit code. Fixes #3254
2020-11-30rc: Consistently use a dot as template separatorFrank LENORMAND
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-*.*`.
2019-11-14rc: Use the standard `fail` command to report errorsFrank LENORMAND
Merely using `echo` with markup doesn't log errors in the debug buffers, and is also less readable.
2019-09-15Rename formatter.kak to format.kak and alias format to format-bufferMaxime Coste