Towards 3.2.0

Rodrigo Arias <[email protected]> Thu, 24 Oct 2024 20:49:18 +0200
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Hi,

I'm planning to close the feature window shortly, so I will need to 
think what else to include for 3.2.0 before it is closed.

One of the features I would like to include is the ability to open a 
link with an external handler. We have a proof of concept that uses the 
rule file, but I think it is too complex for now:

https://github.com/dillo-browser/dillo/pull/199

I'm thinking it may be better to add an easier variant first, that we 
can extend later. I'm considering adding these to dillorc:

actions="default Open with external tool"
actions="firefox Open with Firefox"
actions="mpv Open with MPV"
actions="mpv-audio Open with MPV (audio)"
handler="/bin/the-handler"

Where you can define multiple "actions" but only one "handler". The 
actions have a label at the beginning (first word) and a human readable 
text that will be presented in the menu.

Then, your handler will be invoked using the label as:

/bin/the-handler <URL> <action-label>

And you do whatever you find convenient in your handler, so you have 
more context to decide the proper action based on the label. I think 
this would cover most of the use cases of opening URLs with other 
programs without being too convoluted.

Best,
Rodrigo.
_______________________________________________
Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected]
To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]