cot
command-line tool
The cot
command-line tool allows you to control CotEditor from the command-line.
Installation
The cot command is bundled in CotEditor.app. So, run the following line on your Terminal.app to create a symlink to the cot command.
$ ln -s /Applications/CotEditor.app/Contents/SharedSupport/bin/cot /usr/local/bin/cot
You may need to modify paths in this command depending on where you've installed CotEditor/cot.
Usage
Run cot
with --help
to learn how to use it.
$ cot --help
usage: cot [-h] [-v] [-w] [-g] [-n] [-l LINE] [-c COLUMN] [FILE [FILE ...]]
command-line utility for CotEditor.
positional arguments:
FILE path to file to open
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-w, --wait wait for opened file to be closed
-g, --background do not bring the application to the foreground
-n, --new create a new blank document
-l LINE, --line LINE jump to specific line in opened document
-c COLUMN, --column COLUMN
jump to specific column in opened document