File: command-line.rst

package info (click to toggle)
copyq 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,964 kB
  • sloc: cpp: 63,306; sh: 992; xml: 452; python: 293; ruby: 152; makefile: 27; javascript: 25
file content (54 lines) | stat: -rw-r--r-- 1,190 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
48
49
50
51
52
53
54
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.

.. warning::

    On Windows, you may not see any output when executing CopyQ in
    terminal/console (PowerShell or cmd).

    See workarounds in :ref:`known-issue-windows-console-output`.

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