Files
tldr/pages.zh/common/copyq.md

32 lines
700 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# copyq
> 带有高级功能的剪贴板管理器。
> 更多信息:<https://copyq.readthedocs.io/en/latest/command-line.html>。
- 启动 CopyQ 以存储剪贴板历史记录:
`copyq`
- 显示当前剪贴板内容:
`copyq clipboard`
- 将原始文本插入剪贴板历史记录:
`copyq add -- {{text1}} {{text2}} {{text3}}`
- 将包含转义序列('\n''\t')的文本插入剪贴板历史记录:
`copyq add {{firstline\nsecondline}}`
- 打印剪贴板历史记录中的前三项内容:
`copyq read 0 1 2`
- 将文件内容复制到剪贴板:
`copyq copy < {{path/to/file.txt}}`
- 将 JPEG 图像复制到剪贴板:
`copyq copy image/jpeg < {{path/to/image.jpg}}`