cot command-line tool
The `cot` command-line tool allows you to control CotEditor from the command-line.
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.
You can also install cot command via homebrew.
$ brew tap coteditor/coteditor $ brew install cot
--help to learn how to use it.
$ cot --help usage: cot [-h] [-v] [-g] [-n] [-l LINE] [-c COLUMN] [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 -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.