gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
199 stars 25 forks source link

[Feature Request] Capture multiple fields #160

Closed hkmaly closed 2 years ago

hkmaly commented 3 years ago

Would it be possible to capture multiple fields, that is for example set capture to filename,sourceurl and then match parts of both filename and sourceurl and combine them in target name?

If it's already possible, could it be documented with example?

Something like

filename: (.*)(:|_)large
sourceurl: https?://([^/]*)
capture: filename,sourceurl
into: :$2:-:$1:.:extension:

which would store cat_large.jpg from domain twitter.com as twitter.com-cat.jpg

gyng commented 3 years ago

Not at the moment, but would be a cool feature to have!

gyng commented 2 years ago

Released in v3.6.0.

capture: filename,sourceurl