%pistol-extra% substitution not working.
meck opened this issue · comments
I just tried the new functionally for image previewing discovered a small issue.
image/* chafa -s %pistol-extra0%x%pistol-extra1% %pistol-filename%
does not work it produces nothing for %pistol-extra0%x%pistol-extra1%
but if i add some spaces:
%pistol-extra0% x %pistol-extra1%
it produces the expected output eg. 10 x 20
.
cc @lucas-mior .
That's right, pistol expects to these arguments to be separated from others.
I don't see a simple way to fix this, but until then you should be able to wrap your chafa command inside a script.
Yes, the following roundabout in the configuration seems to work:
image/* sh: size=" %pistol-extra0% x %pistol-extra1% ";size="$(echo -e "${size}" | tr -d '[:space:]')"; chafa -s "${size}" %pistol-filename%
This is still an issue worth solving, that workaround is too ugly. Something is wrong with:
Line 170 in 2e645a0
It doesn't replace the strings if they are not separated with space..