Debian Codegraph @

docs/command-line.rst

raw
1 Command Line
2 ============
3
4 Tabs, items, clipboard and configuration can be changed through command
5 line interface. Run command ``copyq help`` to see complete list of
6 commands and their description.
7
8 .. warning::
9
10 On Windows, you may not see any output when executing CopyQ in
11 terminal/console (PowerShell or cmd).
12
13 See workarounds in :ref:`known-issue-windows-console-output`.
14
15 To add new item to tab with name "notes" run:
16
17 ::
18
19 copyq tab notes add "This is the first note."
20
21 To print the item:
22
23 ::
24
25 copyq tab notes read 0
26
27 Add other item:
28
29 ::
30
31 copyq tab notes add "This is second note."
32
33 and print all items in the tab:
34
35 ::
36
37 copyq eval -- "tab('notes'); for(i=size(); i>0; --i) print(str(read(i-1)) + '\n');"
38
39 This will print:
40
41 ::
42
43 This is the first note.
44 This is second note.
45
46 Among other things that are possible with CopyQ are:
47
48 * open video player if text copied in clipboard is URL with multimedia
49 * store text copied from a code editor in "code" tab
50 * store URLs in different tab
51 * save screenshots (print-screen)
52 * load all files from directory to items (create image gallery)
53 * replace a text in all matching items
54 * run item as a Python script