Copyq: Piping command output to clipboard

Created on 14 Dec 2018  Â·  4Comments  Â·  Source: hluk/CopyQ

Shouldn't the following work?

─➤  echo "Some text" | copyq copy
Note: Started User activity for: CopyQ Client
Note: Ended activity
DEBUG: Message received: CommandException
ScriptError: Failed to copy to clipboard!
  • copyq: 3.7.1
  • MacOS Mojave

Most helpful comment

The command is missing the dash argument to signify that stdin is passed to the copy function.

echo "Some text" | copyq copy -

All 4 comments

The command is missing the dash argument to signify that stdin is passed to the copy function.

echo "Some text" | copyq copy -

Maybe we could show this in the examples.

Not exactly the same command, but copyq copy - < file.txt is mentioned on the web site in the README file.

I accept pull requests so feel free to update it (or the documentation).

That's true. In my mind I was thinking of pbcopy, which doesn't require the -.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orschiro picture orschiro  Â·  9Comments

sebflipper picture sebflipper  Â·  8Comments

davidawad picture davidawad  Â·  9Comments

aksr picture aksr  Â·  9Comments

hluk picture hluk  Â·  9Comments