Skip to content

Add share action #73

@pomdtr

Description

@pomdtr

Each extension should be able to register a command as a share_target.

{
   "title": "My Command",
   "share_target": {
       "command": "sunbeam",
       "params": {
          "url": "link"
        }
    }
   "commands": [
        { "name": "command", "mode": "view", "title": "Save Link", "params": [{ "name": "link", "type": "string" }] }
   ]
}

Then from another extension can use a share action:

{
     "title": "Share Link",
     "onAction": {
        "type": "share",
        "url": "https://github.com"
     }
}

causing all commands accepting a link to be proposed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions