firecat53 / urlscan

Mutt and terminal url selector (similar to urlview)
GNU General Public License v2.0
214 stars 38 forks source link

Feature request: allow multiple/queued URLs to be passed to `--run` script #128

Open pataquets opened 2 years ago

pataquets commented 2 years ago

Thanks for sharing urlscan. It's super useful. If I collect several URLs and open them doing o, only the last collected is yanked when calling urlscan --run yank --pipe. To rule out a yank script issue, I've tried echo a b c d | yank and all four parameters are yanked successfully. For reference, I'm using this yank script.

firecat53 commented 1 year ago

Thanks for the interest and sorry for the long delay in responding!

Urlscan cycles through the list of URLs in the queue and delivers each one separately to the called --run script. Exactly what you are experiencing (_background_queue() in urlchoose.py).

Can I ask what your use case is? I haven't had any other requests for delivering all the URLs as a single string, so I need to decide if it's worth adding another flag. I don't really see another way since urlscan has no way of knowing if a script needs the URLs delivered one at a time or all at once.

Thanks!