To create a new tool or to modify existing ones, open Preferences dialog and select Tools in the list on the left.
Select the tool in the list or click the
button to create a new one. To modify the order in which tools appear in the menu (or in the document context menu), use and buttons. To rename a tool, click its name in the list to select it and then click again to edit the name. Use the button to delete a tool.The following controls are available to modify tools:
Files
entry specifies for which files the tool is going to be available. It can
contain the following:
*.c,*.h
langs:
", e.g.
langs: c, c++, objc
regex:
", e.g. the above
pattern list may be written as regex:\.[ch]$
Empty entry means that the tool will be available for all documents.
Requires
combo box specifies whether the tool should be
enabled depending on current document.
|
the tool is enabled regardless whether there is an open document. |
|
the tool is enabled only if there is an open document. For example, if the tool manipulates current document text, then it needs a document to be there. |
|
the tool is enabled only if current document is saved on disk (i.e. it is not "Untitled"). For example, to compile a TeX file, it needs to be saved first. |
Save
combo box specifies what should be saved every time
before the command is executed.
|
nothing will be saved. |
|
current document will be automatically saved. For example, you probably want to save currrent document before compiling it with latex. |
|
all open documents will be automatically saved. For example, if the tool builds a C project, then you probably want to save all open files before running make. |
Type
combo specifies the type of the tool: a Python script, a
Lua script, or a shell script.