File: command-line.rst

package info (click to toggle)
copyq 3.7.3-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 10,480 kB
  • sloc: cpp: 51,894; sh: 734; python: 211; xml: 57; makefile: 34
file content (47 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Command Line
============

Tabs, items, clipboard and configuration can be changed through command
line interface. Run command ``copyq help`` to see complete list of
commands and their description.

To add new item to tab with name "notes" run:

::

    copyq tab notes add "This is the first note."

To print the item:

::

    copyq tab notes read 0

Add other item:

::

    copyq tab notes add "This is second note."

and print all items in the tab:

::

    copyq eval -- "tab('notes'); for(i=size(); i>0; --i) print(str(read(i-1)) + '\n');"

This will print:

::

    This is the first note.
    This is second note.

Among other things that are possible with CopyQ are:

* open video player if text copied in clipboard is URL with multimedia,
* store text copied from a code editor in "code" tab,
* store URLs in different tab,
* save screenshots (print-screen),
* load all files from directory to items (create image gallery),
* replace a text in all matching items,
* run item as a Python script.