hunter icon indicating copy to clipboard operation
hunter copied to clipboard

How to use filename substitutions in scripts?

Open jarbus opened this issue 5 years ago • 1 comments

I made a new quickaction in .config/hunter/actions:

mv!.sh:

#!/bin/sh
mv $s $n

Which should work using the filename substitutions according to the README, but it doesn't seem like this is a feature. The variables in the script are never set, so the script does nothing. Is there a way to access $s and $n from a script?

jarbus avatar Jul 08 '20 17:07 jarbus

weirdly, it works with "$@" for me. but yeah, neither $n nor $ns work

sabitm avatar Sep 14 '20 01:09 sabitm