Skip to content
Discussion options

You must be logged in to vote

Implemented in 478f911, so it'll be in the next pre-release build.

A selection handler now takes a SelectToolbarNameOrSvg value. When it's set, the handler also gets a button on the toolbar that pops up over a text selection:

SelectionHandlers [
  [
    URL = https://duckduckgo.com/?q=${selection}
    Name = &DuckDuckGo
    SelectToolbarNameOrSvg = Search
  ]
]

The value is the button's text. Unlike Name it's shown exactly as you type it — no & hot-key handling and no translation. Keep it short: the toolbar sits over what you're reading, and each handler you add makes it wider.

If the value starts with <svg, it's an SVG icon and is drawn instead of the text:

SelectionHandlers [
  [
    U…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@GitHubRulesOK
Comment options

@GitHubRulesOK
Comment options

Comment options

You must be logged in to vote
1 reply
@dludream
Comment options

Answer selected by dludream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants