external-application-button icon indicating copy to clipboard operation
external-application-button copied to clipboard

How to modify URL before passing it to an external application?

Open limaceous-bushwhacker opened this issue 1 year ago • 1 comments

Title. I'd like to strip off some parameters before forwarding the [HREF] to the external application.

limaceous-bushwhacker avatar Sep 14 '23 17:09 limaceous-bushwhacker

I ended up relegating the text manipulation part to coreutils. After combing through some of the issues in this repository, this is what I put together:

Exectuable name: sh
Arguments: -c '<program> $(echo "[HREF]" | <sed or whatever>)'

Leaving this issue open in case this can be done within the addon instead of using shell.

limaceous-bushwhacker avatar Sep 21 '23 11:09 limaceous-bushwhacker