Add prefill of output filename

This cuts off the '.age' from the input, then lets
you choose the filename based on that
This commit is contained in:
Lily Hannah 2025-04-26 18:33:38 -04:00
parent 67d9a2c8e7
commit b80e2b54ca
Signed by: SapphicSakuraFox
SSH key fingerprint: SHA256:eDeo8J1v9taxSQLWX8fHD+Zagr5cU+ExRHmF/Wk5evY

View file

@ -34,3 +34,4 @@ wl-paste | rage -d -i - "<input_file>" > "<output_file>"
$ sapphic_public_age_key: echo age17r37eg8lmvsklve0rdajsts2rgca4j5twdmcglh6qufxj7qmzv0qywulhg
$ input_file: find . -maxdepth 1 -type f | gum choose
$ output_file: echo "<input_file>" | sed -e 's/\.age *$//' | gum input --header="Save file as.." --value=""