JYL Scripts
JYL (Jancy language) scripts provide a simple way to expand specific Jancy capabilities using a simple XML like syntax.
<jyl> <command id="close-current-tab" description="Close current tab"> tw.closeTab({ mode: "active" }) </command> </jyl>
JYL Script Format
All JYL files start and end with a jyl
tag.
<jyl> <tag> ... </tag> <tag> ... </tag> ... </jyl>
Some of the tags that are supported between the start and end jyl
tags are further defined in this secion and can also be expanded via Jancy plug-ins.
The
jyl
tag can have both optionaluser-version
anduser-desc
attributes whose values will displayed on the JYL setting page.<jyl user-version="1.0" user-desc="some text"> <tag> ... </tag> </jyl>
JYL Script Filename
JYL files are just text files with a .jyl
file extension.
Adding Your Own JYL Script Files
Custom JYL files can be added to the userland jyl
directory.
- On Windows the jyl folder is located at
%appdata%\Jancy\jyl
- On MacOS the jyl foloder is locatd at
~/Library/Application Support/Jancy/jyl
Jancy will scan the jyl
directory on startup or when told to via the Rescan JYL directory
button in the Core settings panel.
JYL Script Editor
On the JYL settings page you can find a script editor. You can choose from a select box the type of JYL script you want to create and it will fill out a template you can edit. The files will be saved to the JYL directory.
You can also edit the existing scripts by using the edit button on the table of JYL scripts.