在 CopyQ 主页上下载Ubuntu 14.04 64bit 安装包 (copyq_2.7.1_Ubuntu_14.04_amd64.deb)并安装。 2017.1.24补充:在Windows 10虚拟机上下载copyq-v2.8.2-setup.exe并安装, 使用方法与Linux版本一样。
定义快捷键
CopyQ系统栏图标右键 -> Preferences -> Shortcuts -> Custom Actions and Global Shortcuts ...
-
使用全局快捷键
Ctrl-Alt-z
显示/隐藏剪贴板历史:Add -> Show/hide main window
:Type of action:
Global
; Shortcuts:Ctrl-Alt-z
-
使用全局快捷键
Ctrl-Shift-x
粘贴纯文本:Add -> Paste clipboard as plain text
Type of action:
Global
; Shortcuts:Ctrl-Shift-x
-
首先
Alt-Ctrl-z
显示剪贴板历史,选择好要粘贴的条目后按Shift-Enter
粘贴纯文本:Add -> Paste as Plain Text
:Type of action:
In Menu
; Shortcut:Shift-Return
常用命令
Copy console command output to copyq clipboard: cat somefile | copyq add -
.
Copy to a new tab in copyq: cat somefile | copyq tab tab-name add -
,
replace tab-name
with your favorite name.
Copy file full path to clipboard:
readlink -f <filename>|copyq add -
.
Ref: http://stackoverflow.com/questions/5265702/how-to-get-full-path-of-a-file