Debian Codegraph @

assets/packaging/micro.1

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