summaryrefslogtreecommitdiff
path: root/tests/test-dwim-shell-config-concat.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(dwim-shell): build video-concat filelist in elispCraig Jennings13 days1-0/+29
cj/dwim-shell-commands-concatenate-videos built the ffmpeg concat list with echo '<<*>>' | tr ' ' '\n' | sed 's/^/file /'. That splits on spaces, so any video whose name contains a space produced a broken list, and a name with a quote broke the echo outright. I extracted cj/dwim-shell--build-concat-filelist, which renders each path as an escaped file '...' line. I write that list to a temp file and run ffmpeg against the quoted listfile, with a trailing rm to clean up after the process exits. The <<*>> token stays only as an inert shell comment, since dwim-shell needs it to run one command over all marked files instead of once per file.