Rodrigo Arias wrote:
> 
> 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"

One action which would probably complicate things, but likely be
among the most used for me, would actually be something like "View
as text" (in Dillo). Effectively the inverse of "Save link as...".

Websites with annoying MIME settings can give links that one wants
to view as text (eg. source code files), but the server assigns a
MIME value to them that makes Dillo download them to file. This
would force Dillo to display the link as a Text file regardless.

Also the view source plugin/rendering can choke a bit
performance-wise (on the modestly-powered computers I use, at
least) with the multi-MB webpages that are common today. Just
viewing as text might be a quicker option, eg. when looking to
manually extract a URL meant to load via Javascript.

This would be a separate feature to implement, but maybe it would
be a good fit for the same sub-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.

What would the default behaviour be? Will Dillo install a default
handler with its own separate configuration file for setting up the
default 'action' behaviours? Or does the feature only appear after
each user has created their own handler?
_______________________________________________
Dillo-dev mailing list -- dillo-dev@mailman3.com
To unsubscribe send an email to dillo-dev-le...@mailman3.com

Reply via email to