snippetbashTip
copyq — Clipboard manager with advanced features. More information: <https://copyq.readthedocs.io/en/latest/
Viewed 0 times
commandcopyqclipboardfeaturescliwithadvancedmanager
Problem
How to use the
copyq command: Clipboard manager with advanced features. More information: <https://copyq.readthedocs.io/en/latest/command-line.html>.Solution
copyq — Clipboard manager with advanced features. More information: <https://copyq.readthedocs.io/en/latest/command-line.html>.Launch CopyQ to store clipboard history:
copyqShow current clipboard content:
copyq clipboardInsert raw text into the clipboard history:
copyq add -- {{text1}} {{text2}} {{text3}}Insert text containing escape sequences ('\n', '\t') into the clipboard history:
copyq add {{firstline\nsecondline}}Print the content of the first 3 items in the clipboard history:
copyq read 0 1 2Copy a file's contents into the clipboard:
copyq < {{path/to/file.txt}} copyCopy a JPEG image into the clipboard:
copyq < {{path/to/image.jpg}} copy image/jpegCode Snippets
Launch CopyQ to store clipboard history
copyqShow current clipboard content
copyq clipboardInsert raw text into the clipboard history
copyq add -- {{text1}} {{text2}} {{text3}}Insert text containing escape sequences ('\n', '\t') into the clipboard history
copyq add {{firstline\nsecondline}}Print the content of the first 3 items in the clipboard history
copyq read 0 1 2Context
tldr-pages: common/copyq
Revisions (0)
No revisions yet.