Skip to main content
Topic: New way to create "Open with" menu (Read 1901 times)

New way to create "Open with" menu

Starting with weekly #189 old actions used for adding "Open with" menus were replaced by generic Menu with parameters and options, example (open current page in external application):
Code: [Select]
{
"type": "menu",
"identifier": "OpenInApplicationMenu",
"parameters":
{
"urlPlaceholder": "{pageUrl}"
},
"options":
{
"mimeType": "text/html"
}
},
urlPlaceholder parameter is used to determine source of the link, currently available:
  • {clipboard}
  • {frameUrl}
  • {imageUrl}
  • {linkUrl}
  • {pageUrl}
  • {selection}
mimeType option is used to decide which applications should be listed, filtering them by supported MIME type.

Initially I've planned to drop them during migration of keyboard shortcut profiles but these three stopped working after recent overhaul of our actions system anyway...
Most likely they will be still included in that migration, when it will be ready.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.