Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created May 28, 2024 00:24
Show Gist options
  • Save johnlindquist/263394c384502db87dde42397296a232 to your computer and use it in GitHub Desktop.
Save johnlindquist/263394c384502db87dde42397296a232 to your computer and use it in GitHub Desktop.
// Name: Testing Get Selected Text
import "@johnlindquist/kit"
let text = await getSelectedText()
await setSelectedText(`yay ${text}!`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment