# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017, Lukas Holecek
# This file is distributed under the same license as the CopyQ package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CopyQ \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-07 14:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.4.0\n"

#: ../../scripting.rst:2
msgid "Scripting"
msgstr ""

#: ../../scripting.rst:4
msgid ""
"If you need to process items in some non-trivial way you can take "
"advantage of the scripting interface the application provides. This is "
"accessible on command line as ``copyq eval SCRIPT`` or ``copyq -e "
"SCRIPT`` where ``SCRIPT`` is string containing commands written in "
"Javascript-similar scripting language (Qt Script with is ECMAScript "
"scripting language)."
msgstr ""

#: ../../scripting.rst:11
msgid ""
"Every command line option is available as function in the scripting "
"interface. Command ``copyq help tab`` can be written as ``copyq eval "
"'print(help(\"tab\"))'`` (note: ``print`` is needed to print the return "
"value of ``help(\"tab\")`` function call)."
msgstr ""

#: ../../scripting.rst:17
msgid "Searching Items"
msgstr ""

#: ../../scripting.rst:19
msgid ""
"You can print each item with ``copyq read N`` where N is item number from"
" 0 to ``copyq size`` (i.e. number of items in the first tab) and put item"
" to clipboard with ``copyq select N``. With these commands it's possible "
"to search items and copy the right one with a script. E.g. having file "
"``script.js`` containing"
msgstr ""

#: ../../scripting.rst:33
msgid ""
"and passing it to CopyQ using ``cat script.js | copyq eval -`` will put "
"first item containing \"MATCH-THIS\" string to clipboard."
msgstr ""

#: ../../scripting.rst:37
msgid "Working with Tabs"
msgstr ""

#: ../../scripting.rst:39
msgid ""
"By default commands and functions work with items in the first tab. "
"Calling ``read(0, 1, 2)`` will read first three items from the first tab."
" To access items in other tab you need to switch the current tab with "
"``tab(\"TAB_NAME\")`` (or ``copyq tab TAB_NAME`` on command line) where "
"``TAB_NAME`` is name of the tab."
msgstr ""

#: ../../scripting.rst:45
msgid ""
"For example to search for an item as in the previous script but in all "
"tabs you'll have to run:"
msgstr ""

#: ../../scripting.rst:62
msgid "Scripting Functions"
msgstr ""

#: ../../scripting.rst:64
msgid ""
"As mentioned above, all command line options are also available for "
"scripting e.g.: ``show()``, ``hide()``, ``toggle()``, ``copy()``, "
"``paste()``."
msgstr ""

#: ../../scripting.rst:68
msgid ""
"Reference for available scripting functions can be found at :ref"
":`scripting-api`."
msgstr ""

#: ../../scripting.rst:71
msgid ""
"Other supported functions can be found at `ECMAScript Reference "
"<http://doc.qt.io/qt-5/ecmascript.html>`__."
msgstr ""

