You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
micro \- A modern and intuitive terminal-based text editor
4
4
.SH SYNOPSIS
5
5
.Bmicro
6
-
.RB [OPTIONS]
7
-
[FILE]\&...
8
-
6
+
.RI [ OPTION ]...\&
7
+
.RI [ FILE ]...\&
8
+
.RI [+ LINE [: COL ]]
9
+
.br
10
+
.Bmicro
11
+
.RI [ OPTION ]...\&
12
+
.RI [ FILE [: LINE [: COL ]]]...\&
13
+
\& (only if the `parsecursor` option is enabled)
9
14
.SH DESCRIPTION
10
-
11
15
Micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the full capabilities
12
16
of modern terminals. It comes as one single, batteries-included, static binary with no dependencies.
13
17
14
18
As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch, but micro also aims to be
15
19
enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).
16
20
17
21
Use Ctrl-q to quit, Ctrl-s to save, and Ctrl-g to open the in-editor help menu.
18
-
19
22
.SH OPTIONS
20
23
.PP
21
-
\-clean
24
+
.B\-clean
22
25
.RS4
23
-
Cleans the configuration directory
26
+
Clean the configuration directory and exit
24
27
.RE
25
-
26
28
.PP
27
-
\-config-dir dir
29
+
.B\-config-dir
30
+
.Idir
28
31
.RS4
29
32
Specify a custom location for the configuration directory
30
33
.RE
31
-
32
34
.PP
33
-
[FILE]:LINE:COL
35
+
.IR FILE : LINE [: COL ]
36
+
(only if the `parsecursor` option is enabled)
37
+
.br
38
+
.IR FILE \ + LINE [: COL ]
34
39
.RS4
35
40
Specify a line and column to start the cursor at when opening a buffer
36
41
.RE
37
-
38
42
.PP
39
-
\-options
43
+
.B\-options
40
44
.RS4
41
-
Show all option help
45
+
Show all options help and exit
42
46
.RE
43
-
44
47
.PP
45
-
\-debug
48
+
.B\-debug
46
49
.RS4
47
50
Enable debug mode (enables logging to ./log.txt)
48
51
.RE
49
-
50
52
.PP
51
-
\-version
53
+
.B\-profile
54
+
.RS4
55
+
Enable CPU profiling (writes profile info to ./micro.prof so it can be analyzed later with "go tool pprof micro.prof")
56
+
.RE
57
+
.PP
58
+
.B\-version
52
59
.RS4
53
-
Show the version number and information
60
+
Show the version number and information and exit
54
61
.RE
55
62
56
63
Micro's plugins can be managed at the command line with the following commands.
57
64
.RS4
58
-
59
65
.PP
60
-
\-plugin remove [PLUGIN]...
66
+
.B\-plugininstall
67
+
.RI [ PLUGIN ]...
68
+
.RS4
69
+
Install plugin(s)
70
+
.RE
71
+
.PP
72
+
.B\-pluginremove
73
+
.RI [ PLUGIN ]...
61
74
.RS4
62
75
Remove plugin(s)
63
76
.RE
64
-
65
77
.PP
66
-
\-plugin update [PLUGIN]...
78
+
.B\-pluginupdate
79
+
.RI [ PLUGIN ]...
67
80
.RS4
68
81
Update plugin(s) (if no argument is given, updates all plugins)
69
82
.RE
70
-
71
83
.PP
72
-
\-plugin search [PLUGIN]...
84
+
.B\-pluginsearch
85
+
.RI [ PLUGIN ]...
73
86
.RS4
74
87
Search for a plugin
75
88
.RE
76
-
77
89
.PP
78
-
\-plugin list
90
+
.B\-pluginlist
79
91
.RS4
80
92
List installed plugins
81
93
.RE
82
-
83
94
.PP
84
-
\-plugin available
95
+
.B\-pluginavailable
85
96
.RS4
86
97
List available plugins
87
98
.RE
@@ -91,35 +102,33 @@ Micro's options can also be set via command line arguments for quick
91
102
adjustments. For real configuration, please use the settings.json
92
103
file (see 'help options').
93
104
.RS4
94
-
95
105
.PP
96
-
\-option value
106
+
.BI\-< option >
107
+
.Ivalue
97
108
.RS4
98
-
Set `option` to `value` for this session
109
+
Set `option` to `value` for this session.
110
+
.br
99
111
For example: `micro -syntax off file.c`
100
112
.RE
101
-
102
-
113
+
.RE
114
+
.PP
115
+
Use `micro -options` to see the full list of configuration options.
103
116
.SH CONFIGURATION
104
-
105
117
Micro uses $MICRO_CONFIG_HOME as the configuration directory.
106
118
If this environment variable is not set, it uses $XDG_CONFIG_HOME/micro instead.
107
119
If that environment variable is not set, it uses ~/.config/micro as the configuration directory.
108
120
In the documentation, we use ~/.config/micro to refer to the configuration directory
109
121
(even if it may in fact be somewhere else if you have set either of the above environment variables).
110
-
111
122
.SH NOTICE
112
123
This manpage is intended only to serve as a quick guide to the invocation of
113
124
micro and is not intended to replace the full documentation included with micro
114
125
which can be accessed from within micro. Micro tells you what key combination to
115
126
press to get help in the lower right.
116
-
117
127
.SH BUGS
118
128
A comprehensive list of bugs will not be listed in this manpage. See the Github
119
129
page at \fBhttps://github.com/zyedidia/micro/issues\fP for a list of known bugs
120
130
and to report any newly encountered bugs you may find. We strive to correct
121
131
bugs as swiftly as possible.
122
-
123
132
.SH COPYRIGHT
124
133
Copyright \(co 2020 Zachary Yedidia, et al. MIT license.
125
134
See \fBhttps://github.com/zyedidia/micro\fP for details.
fmt.Println(" micro [OPTION]... [FILE[:LINE[:COL]]]... (only if the `parsecursor` option is enabled)")
51
53
fmt.Println("-clean")
52
-
fmt.Println(" \tCleans the configuration directory")
54
+
fmt.Println(" \tClean the configuration directory and exit")
53
55
fmt.Println("-config-dir dir")
54
56
fmt.Println(" \tSpecify a custom location for the configuration directory")
55
-
fmt.Println("[FILE]:LINE:COL (if the `parsecursor` option is enabled)")
56
-
fmt.Println("+LINE:COL")
57
+
fmt.Println("FILE:LINE[:COL] (only if the `parsecursor` option is enabled)")
58
+
fmt.Println("FILE +LINE[:COL]")
57
59
fmt.Println(" \tSpecify a line and column to start the cursor at when opening a buffer")
58
60
fmt.Println("-options")
59
-
fmt.Println(" \tShow all option help")
61
+
fmt.Println(" \tShow all options help and exit")
60
62
fmt.Println("-debug")
61
63
fmt.Println(" \tEnable debug mode (enables logging to ./log.txt)")
62
64
fmt.Println("-profile")
63
65
fmt.Println(" \tEnable CPU profiling (writes profile info to ./micro.prof")
64
66
fmt.Println(" \tso it can be analyzed later with \"go tool pprof micro.prof\")")
65
67
fmt.Println("-version")
66
-
fmt.Println(" \tShow the version number and information")
68
+
fmt.Println(" \tShow the version number and information and exit")
67
69
68
70
fmt.Print("\nMicro's plugins can be managed at the command line with the following commands.\n")
69
71
fmt.Println("-plugin install [PLUGIN]...")
@@ -80,7 +82,7 @@ func InitFlags() {
80
82
fmt.Println(" \tList available plugins")
81
83
82
84
fmt.Print("\nMicro's options can also be set via command line arguments for quick\nadjustments. For real configuration, please use the settings.json\nfile (see 'help options').\n\n")
83
-
fmt.Println("-option value")
85
+
fmt.Println("-<option> value")
84
86
fmt.Println(" \tSet `option` to `value` for this session")
85
87
fmt.Println(" \tFor example: `micro -syntax off file.c`")
86
88
fmt.Println("\nUse `micro -options` to see the full list of configuration options")
0 commit comments