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=.
Returns
Source Source/ClipShow.spoon/init.lua line 267
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.
Returns
Source Source/ClipShow.spoon/init.lua line 379
restoreLastSession
Signature ClipShow:restoreLastSession()
Type Method
Description

Restore the lastsession of system clipboard

Parameters
  • None
Returns
Source Source/ClipShow.spoon/init.lua line 340
saveToFile
Signature ClipShow:saveToFile()
Type Method
Description

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

Parameters
  • None
Returns
Source Source/ClipShow.spoon/init.lua line 355
saveToSession
Signature ClipShow:saveToSession()
Type Method
Description

Save clipboard session so we can restore it later

Parameters
  • None
Returns
Source Source/ClipShow.spoon/init.lua line 298
toggleShow
Signature ClipShow:toggleShow()
Type Method
Description

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

Parameters
  • None
Returns
Source Source/ClipShow.spoon/init.lua line 99