-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcot.html
93 lines (68 loc) · 2.96 KB
/
cot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head prefix="og: http://ogp.me/ns#">
<meta charset="UTF-8"/>
<meta name="description" content="Distribution page of cot command-line tool for CotEditor"/>
<title>cot command-line tool - CotEditor</title>
<meta property="og:type" content="article"/>
<meta property="og:url" content="https://coteditor.com/cot"/>
<meta property="og:title" content="CotEditor"/>
<meta property="og:description" content="Distribution page of cot command-line tool for CotEditor"/>
<meta property="og:image" content="https://coteditor.com/img/appicon/[email protected]"/>
<meta property="og:site_name" content="CotEditor"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:locale:alternate" content="ja_JP"/>
<meta property="twitter:card" content="summary"/>
<meta property="twitter:creator" content="@CotEditor"/>
<link rel="shortcut icon" href="favicon.png" type="image/png" sizes="16x16"/>
<link rel="shortcut icon" href="[email protected]" type="image/png" sizes="32x32"/>
<!-- <link rel="alternate" href="cot.ja" hreflang="ja"/> -->
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/cot.css"/>
</head>
<body>
<header>
<a href="/">CotEditor</a>
<nav><ul>
<li><a href="archives">Archives</a></li>
<li><a href="contact">Contact</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>
<main>
<h1><code>cot</code> command-line tool</h1>
<p>The <code>cot</code> command-line tool allows you to control CotEditor from the command-line.</p>
<section>
<h2>Installation</h2>
<p>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.</p>
<pre><code>$ ln -s /Applications/CotEditor.app/Contents/SharedSupport/bin/cot /usr/local/bin/cot</code></pre>
<p>You may need to modify paths in this command depending on where you've installed CotEditor/cot.</p>
</section>
<section>
<h2>Usage</h2>
<p>Run <code>cot</code> with <code>--help</code> to learn how to use it.</p>
<pre><code>$ 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
</code></pre>
</section>
<section>
<a href="https://github.com/coteditor/cot">cot's repo on GitHub</a>
</section>
</main>
<footer>
<p class="copyright">© 2015-2022 CotEditor Project</p>
</footer>
</body>
</html>