docs » ClipShow

Show the content of system clipboard

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ClipShow.spoon.zip

API Overview

API Documentation

Methods

openInBrowserWithRef
Signature ClipShow:openInBrowserWithRef(refstr)
Type Method
Description

Open content of the clipboard in default browser with specific refstr.

Parameters:

  • refstr - A optional string specifying which refstr to use. If nil, then open this content in browser directly. The "refstr" could be something like this: https://www.bing.com/search?q=.
openWithCommand
Signature ClipShow:openWithCommand(command)
Type Method
Description

Open local file with specific command.

Parameters:

  • command - A string specifying which command to use. The "command" is something like this: /usr/local/bin/mvim.
restoreLastSession
Signature ClipShow:restoreLastSession()
Type Method
Description

Restore the lastsession of system clipboard

saveToFile
Signature ClipShow:saveToFile()
Type Method
Description

Save content of current canvas to a file, the default location is ~/Desktop/.

saveToSession
Signature ClipShow:saveToSession()
Type Method
Description

Save clipboard session so we can restore it later

toggleShow
Signature ClipShow:toggleShow()
Type Method
Description

Process the content of system clipboard and show/hide the canvas