Skip to content

Commit 6ed1184

Browse files
Merge branch 'master' into dev
2 parents 413d366 + ccf0a9f commit 6ed1184

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+864
-460
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# See http://editorconfig.org
1+
# See https://editorconfig.org
22

33
# In Go files we indent with tabs but still
44
# set indent_size to control the GitHub web viewer.
55
[*.go]
66
indent_size=4
7-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22

33
micro
4+
micro.exe
45
!cmd/micro
56
binaries/
67
tmp.sh

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
> This is just my personal development branch for [micro](https://github.com/zyedidia/micro) where many of my (and other) PRs are merged
55
>
66
> ### Merged Open PRs
7-
> - [Changing syntax behavior for single quote to allow binary and hex literal separator #3310](https://github.com/zyedidia/micro/pull/3310)
87
> - [Fix indent selection #3102](https://github.com/zyedidia/micro/pull/3102)
98
> - [Add wrapindent option to allow wrapping and hanging indents #3107](https://github.com/zyedidia/micro/pull/3107)
109
> - [add next/prev split/tab support for terminal pane #3165](https://github.com/zyedidia/micro/pull/3165)
@@ -15,10 +14,7 @@
1514
> - [Add the ability lock settings.json and bindings.json for plugins #3618](https://github.com/zyedidia/micro/pull/3618)
1615
> - [Adding error screen for lua functions running in status line #3691](https://github.com/zyedidia/micro/pull/3691)
1716
> - [Adding lua function to use result of RunBackgroundShell #3692](https://github.com/zyedidia/micro/pull/3692)
18-
> - [Adding indenttabchar, indentspacechar and spacechar options #3760](https://github.com/zyedidia/micro/pull/3760)
19-
> - [Adding missing file closes #3807](https://github.com/zyedidia/micro/pull/3807)
2017
> - [Pasting multi cursor clipboard with newlines for non matching cursors #3809](https://github.com/zyedidia/micro/pull/3809)
21-
> - [Adding the ability to differentiate builtin plugins when listing #3810](https://github.com/zyedidia/micro/pull/3810)
2218
> - [Added support for multi-cursor comments to the comment plugin #3543 (Removed the version part)](https://github.com/zyedidia/micro/pull/3543)
2319
>
2420
> To see the diff between this and upstream master, click [here](https://github.com/zyedidia/micro/compare/master...Neko-Box-Coder:micro-dev:dev)
@@ -35,7 +31,7 @@ Just like the official release, you can find the nightly build of this branch un
3531
> Below is the original readme
3632
3733
![Test Workflow](https://github.com/zyedidia/micro/actions/workflows/test.yaml/badge.svg)
38-
[![Go Report Card](https://goreportcard.com/badge/github.com/zyedidia/micro)](https://goreportcard.com/report/github.com/zyedidia/micro)
34+
[![Go Report Card](https://goreportcard.com/badge/github.com/zyedidia/micro/v2)](https://goreportcard.com/report/github.com/zyedidia/micro/v2)
3935
[![Release](https://img.shields.io/github/release/zyedidia/micro.svg?label=Release)](https://github.com/zyedidia/micro/releases)
4036
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zyedidia/micro/blob/master/LICENSE)
4137
[![Join the chat at https://gitter.im/zyedidia/micro](https://badges.gitter.im/zyedidia/micro.svg)](https://gitter.im/zyedidia/micro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -176,7 +172,7 @@ for other operating systems. These packages are not guaranteed to be up-to-date.
176172
* `winget install zyedidia.micro`
177173
* OpenBSD: Available in the ports tree and also available as a binary package.
178174
* `pkg_add -v micro`.
179-
* NetBSD, macOS, Linux, Illumos, etc. with [pkgsrc](http://www.pkgsrc.org/)-current:
175+
* NetBSD, macOS, Linux, Illumos, etc. with [pkgsrc](https://www.pkgsrc.org/)-current:
180176
* `pkg_add micro`
181177
* macOS: Available in package managers.
182178
* `sudo port install micro` (with [MacPorts](https://www.macports.org))
@@ -230,7 +226,7 @@ Native macOS builds are done with `CGO_ENABLED=1` forced set to support adding t
230226

231227
### macOS terminal
232228

233-
If you are using macOS, you should consider using [iTerm2](http://iterm2.com/) instead of the default terminal (Terminal.app). The iTerm2 terminal has much better mouse support as well as better handling of key events. For best keybinding behavior, choose `xterm defaults` under `Preferences->Profiles->Keys->Presets...`, and select `Esc+` for `Left Option Key` in the same menu. The newest versions also support true color.
229+
If you are using macOS, you should consider using [iTerm2](https://iterm2.com/) instead of the default terminal (Terminal.app). The iTerm2 terminal has much better mouse support as well as better handling of key events. For best keybinding behavior, choose `xterm defaults` under `Preferences->Profiles->Keys->Presets...`, and select `Esc+` for `Left Option Key` in the same menu. The newest versions also support true color.
234230

235231
If you still insist on using the default Mac terminal, be sure to set `Use Option key as Meta key` under
236232
`Preferences->Profiles->Keyboard` to use <kbd>option</kbd> as <kbd>alt</kbd>.

assets/packaging/micro.1

Lines changed: 54 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,104 @@
1-
.TH micro 1 "2020-02-10"
1+
.TH micro 1 "2025-09-03"
22
.SH NAME
33
micro \- A modern and intuitive terminal-based text editor
44
.SH SYNOPSIS
55
.B micro
6-
.RB [OPTIONS]
7-
[FILE]\&...
8-
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)
915
.SH DESCRIPTION
10-
1116
Micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the full capabilities
1217
of modern terminals. It comes as one single, batteries-included, static binary with no dependencies.
1318

1419
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
1520
enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).
1621

1722
Use Ctrl-q to quit, Ctrl-s to save, and Ctrl-g to open the in-editor help menu.
18-
1923
.SH OPTIONS
2024
.PP
21-
\-clean
25+
.B \-clean
2226
.RS 4
23-
Cleans the configuration directory
27+
Clean the configuration directory and exit
2428
.RE
25-
2629
.PP
27-
\-config-dir dir
30+
.B \-config-dir
31+
.I dir
2832
.RS 4
2933
Specify a custom location for the configuration directory
3034
.RE
31-
3235
.PP
33-
[FILE]:LINE:COL
36+
.IR FILE : LINE [: COL ]
37+
(only if the `parsecursor` option is enabled)
38+
.br
39+
.IR FILE \ + LINE [: COL ]
3440
.RS 4
3541
Specify a line and column to start the cursor at when opening a buffer
3642
.RE
37-
3843
.PP
39-
\-options
44+
.RI +/ REGEX
4045
.RS 4
41-
Show all option help
46+
Specify a regex to search for when opening a buffer
4247
.RE
43-
4448
.PP
45-
\-debug
49+
.B \-options
50+
.RS 4
51+
Show all options help and exit
52+
.RE
53+
.PP
54+
.B \-debug
4655
.RS 4
4756
Enable debug mode (enables logging to ./log.txt)
4857
.RE
49-
5058
.PP
51-
\-version
59+
.B \-profile
5260
.RS 4
53-
Show the version number and information
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
5467
.RE
5568

5669
Micro's plugins can be managed at the command line with the following commands.
5770
.RS 4
58-
5971
.PP
60-
\-plugin remove [PLUGIN]...
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 ]...
6180
.RS 4
6281
Remove plugin(s)
6382
.RE
64-
6583
.PP
66-
\-plugin update [PLUGIN]...
84+
.B \-plugin update
85+
.RI [ PLUGIN ]...
6786
.RS 4
6887
Update plugin(s) (if no argument is given, updates all plugins)
6988
.RE
70-
7189
.PP
72-
\-plugin search [PLUGIN]...
90+
.B \-plugin search
91+
.RI [ PLUGIN ]...
7392
.RS 4
7493
Search for a plugin
7594
.RE
76-
7795
.PP
78-
\-plugin list
96+
.B \-plugin list
7997
.RS 4
8098
List installed plugins
8199
.RE
82-
83100
.PP
84-
\-plugin available
101+
.B \-plugin available
85102
.RS 4
86103
List available plugins
87104
.RE
@@ -91,35 +108,33 @@ Micro's options can also be set via command line arguments for quick
91108
adjustments. For real configuration, please use the settings.json
92109
file (see 'help options').
93110
.RS 4
94-
95111
.PP
96-
\-option value
112+
.BI \-< option >
113+
.I value
97114
.RS 4
98-
Set `option` to `value` for this session
115+
Set `option` to `value` for this session.
116+
.br
99117
For example: `micro -syntax off file.c`
100118
.RE
101-
102-
119+
.RE
120+
.PP
121+
Use `micro -options` to see the full list of configuration options.
103122
.SH CONFIGURATION
104-
105123
Micro uses $MICRO_CONFIG_HOME as the configuration directory.
106124
If this environment variable is not set, it uses $XDG_CONFIG_HOME/micro instead.
107125
If that environment variable is not set, it uses ~/.config/micro as the configuration directory.
108126
In the documentation, we use ~/.config/micro to refer to the configuration directory
109127
(even if it may in fact be somewhere else if you have set either of the above environment variables).
110-
111128
.SH NOTICE
112129
This manpage is intended only to serve as a quick guide to the invocation of
113130
micro and is not intended to replace the full documentation included with micro
114131
which can be accessed from within micro. Micro tells you what key combination to
115132
press to get help in the lower right.
116-
117133
.SH BUGS
118134
A comprehensive list of bugs will not be listed in this manpage. See the Github
119135
page at \fBhttps://github.com/zyedidia/micro/issues\fP for a list of known bugs
120136
and to report any newly encountered bugs you may find. We strive to correct
121137
bugs as swiftly as possible.
122-
123138
.SH COPYRIGHT
124139
Copyright \(co 2020 Zachary Yedidia, et al. MIT license.
125140
See \fBhttps://github.com/zyedidia/micro\fP for details.

0 commit comments

Comments
 (0)