Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add share action #73

Open
pomdtr opened this issue Oct 12, 2023 · 1 comment
Open

Add share action #73

pomdtr opened this issue Oct 12, 2023 · 1 comment
Milestone

Comments

@pomdtr
Copy link
Owner

pomdtr commented Oct 12, 2023

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.

@pomdtr pomdtr added this to the v1.1 milestone Oct 13, 2023
@pomdtr
Copy link
Owner Author

pomdtr commented Oct 13, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant