@vicinae/api
    Preparing search index...

    Function getSelectedText

    • Get the text that is currently selected by the user. How this is implemented depends on the environment but all it does is usually read the clipboard's primary selection buffer.

      Returns Promise<string>