]> git.lizzy.rs Git - micro.git/log
micro.git
19 months agoAdd autoretab autoretab
Elias Fleckenstein [Fri, 1 Jul 2022 02:31:52 +0000 (04:31 +0200)]
Add autoretab

20 months agoAdd justfile syntax (#2523)
Tomo [Mon, 22 Aug 2022 06:53:04 +0000 (23:53 -0700)]
Add justfile syntax (#2523)

Just is 'just a command runner'. It has syntax inspired by make,
 so `makefile.yaml` was used as a template.

20 months agoAdd template literal string highlighting to typescript (#2525)
Mishanya [Mon, 22 Aug 2022 06:52:47 +0000 (09:52 +0300)]
Add template literal string highlighting to typescript (#2525)

20 months agoRestore installation instructions for Debian and Ubuntu. (#2530)
trolzen [Sun, 21 Aug 2022 02:08:57 +0000 (05:08 +0300)]
Restore installation instructions for Debian and Ubuntu. (#2530)

20 months agoUse shell job for terminal callback
Zachary Yedidia [Fri, 19 Aug 2022 22:46:01 +0000 (15:46 -0700)]
Use shell job for terminal callback

Fixes #2529

20 months agoEnsure screen cannot draw during a term prompt
Zachary Yedidia [Wed, 17 Aug 2022 05:07:41 +0000 (22:07 -0700)]
Ensure screen cannot draw during a term prompt

Fixes #2528

21 months agoadd: add Pacstall to README.md (#2367)
cat-master21 [Sun, 24 Jul 2022 21:14:52 +0000 (14:14 -0700)]
add: add Pacstall to README.md (#2367)

21 months agoplugins: load directories that are symlinks (#2214)
Daniel Lee Harple [Sun, 24 Jul 2022 21:13:46 +0000 (17:13 -0400)]
plugins: load directories that are symlinks (#2214)

Fix issue where symlinked plugin directories were ignored. For example

    $ file ~/.config/micro/plug/example
    example: symbolic link to <target directory>

This allows plugins to be managed in a user's "dotfiles" repository, and
be symlinked into micro's plugin directory.

21 months agoAdd new python 3.10 keywords (#2243)
silvershade1337 [Sun, 24 Jul 2022 21:11:48 +0000 (02:41 +0530)]
Add new python 3.10 keywords (#2243)

Keywords from the new python 3.10.0 feature "Structural Pattern Matching" - match and case

21 months agoFix gruvbox-tc colorscheme (#2240)
Martin Kühl [Sun, 24 Jul 2022 21:11:16 +0000 (23:11 +0200)]
Fix gruvbox-tc colorscheme (#2240)

The underline style is missing a color and accidentally using the
background color for its foreground.  This makes links essentially
invisible.  It's also missing the todo style.

This change adds the missing style and color.  Following the gruvbox
colorscheme it uses the gruvbox shade of blue for links, and makes
todos bold.

21 months agoAdd Terraform syntax support (#2279)
Matthias Thym [Sun, 24 Jul 2022 21:10:29 +0000 (23:10 +0200)]
Add Terraform syntax support (#2279)

21 months agoFix cursor position change after CopyLine command (#2353)
Lincoln Júnior [Sun, 24 Jul 2022 21:09:14 +0000 (18:09 -0300)]
Fix cursor position change after CopyLine command (#2353)

21 months agoAdded installation instruction for Gentoo distro (#2209)
Max Grinberg [Sun, 24 Jul 2022 21:07:57 +0000 (00:07 +0300)]
Added installation instruction for Gentoo distro (#2209)

Co-authored-by: Max Grinberg <codeswhite@protonmail.com>
21 months agoFix weird behavior of JumpToMatchingBrace in some ill cases (#1966)
worldmaker [Sun, 24 Jul 2022 21:06:59 +0000 (05:06 +0800)]
Fix weird behavior of JumpToMatchingBrace in some ill cases (#1966)

It should not return false immediately when no matching brace is found. This makes the jump fails in certain case: `[  )I]` =/=> `[I  )]`.
When there is no brace near the cursor, the last statement is also executed. This may cause problems when chaining commands.

21 months agoUpdate README.md (#2109)
Mario [Sun, 24 Jul 2022 21:04:59 +0000 (23:04 +0200)]
Update README.md (#2109)

Change over 10 years deprecated ifconfig

21 months agoMerge branch 'john-batch-master'
Zachary Yedidia [Sun, 24 Jul 2022 21:04:00 +0000 (14:04 -0700)]
Merge branch 'john-batch-master'

21 months agoCase-insensitive highlighting of hexadecimal constants
john-batch [Sun, 15 Aug 2021 14:00:41 +0000 (16:00 +0200)]
Case-insensitive highlighting of hexadecimal constants

21 months agoLinux clipboard notes reformatted and reordered (#2210)
Max Grinberg [Sun, 24 Jul 2022 21:00:41 +0000 (00:00 +0300)]
Linux clipboard notes reformatted and reordered (#2210)

Co-authored-by: Max Grinberg <codeswhite@protonmail.com>
21 months agoMerge branch 'mardukbp-patch-1'
Zachary Yedidia [Sun, 24 Jul 2022 20:59:18 +0000 (13:59 -0700)]
Merge branch 'mardukbp-patch-1'

21 months agoMerge branch 'patch-1' of https://github.com/mardukbp/micro into mardukbp-patch-1
Zachary Yedidia [Sun, 24 Jul 2022 20:59:12 +0000 (13:59 -0700)]
Merge branch 'patch-1' of https://github.com/mardukbp/micro into mardukbp-patch-1

21 months agoruntime/help/defaultkeys.md: Fix table (#2376)
Sizhe Zhao [Sun, 24 Jul 2022 20:56:30 +0000 (04:56 +0800)]
runtime/help/defaultkeys.md: Fix table (#2376)

21 months agohelp/options.md: reword `hlsearch` help text (#2502)
Waldir Pimenta [Sun, 24 Jul 2022 20:56:11 +0000 (21:56 +0100)]
help/options.md: reword `hlsearch` help text (#2502)

Also adjust text wrapping in some lines that had become too long with recent edits.

21 months agodelete minor unreachable code caused by log.Fatal (#2507)
Abirdcfly [Sun, 24 Jul 2022 20:56:02 +0000 (04:56 +0800)]
delete minor unreachable code caused by log.Fatal (#2507)

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
21 months agoOnly run info plist on darwin
Zachary Yedidia [Fri, 22 Jul 2022 00:54:01 +0000 (17:54 -0700)]
Only run info plist on darwin

21 months agoFix info-plist script
Zachary Yedidia [Fri, 22 Jul 2022 00:46:23 +0000 (17:46 -0700)]
Fix info-plist script

21 months agoMerge
Zachary Yedidia [Wed, 20 Jul 2022 17:16:46 +0000 (10:16 -0700)]
Merge

21 months agoAdd livemd to markdown extensions
Zachary Yedidia [Wed, 20 Jul 2022 17:16:42 +0000 (10:16 -0700)]
Add livemd to markdown extensions

21 months agoscala.yaml: add support for .sc extension (#2452)
Naftoli Gugenheim [Sun, 17 Jul 2022 19:19:07 +0000 (15:19 -0400)]
scala.yaml: add support for .sc extension (#2452)

It's used for Ammonite scripts and Scala worksheets

21 months agofix javascript syntax recognizing parts of words as keywords (#2462)
Mikko [Sun, 17 Jul 2022 19:18:56 +0000 (22:18 +0300)]
fix javascript syntax recognizing parts of words as keywords (#2462)

21 months agoadded support for HolyC (#2473)
Aaron Clark [Sun, 17 Jul 2022 19:18:39 +0000 (12:18 -0700)]
added support for HolyC (#2473)

21 months agoimprove fortran syntax highlighting (#2479)
yeti [Sun, 17 Jul 2022 19:18:30 +0000 (20:18 +0100)]
improve fortran syntax highlighting (#2479)

* support integer highlighting

* add missing keywords and move some to where they fit better

* add missing operators

* fix previous commit

* add and

* add import

21 months agoAdds options for tab bar and tab color reversing (#2480)
Ben Hammond [Sun, 17 Jul 2022 19:18:11 +0000 (12:18 -0700)]
Adds options for tab bar and tab color reversing (#2480)

* Adds options for tab bar and tab color reversing

* Fixes small bug with tabreverse, options now work fully as expected

21 months agoGnuplot Syntax highlighting (#2483)
raidenXR [Sun, 17 Jul 2022 19:17:11 +0000 (15:17 -0400)]
Gnuplot Syntax highlighting (#2483)

* gnuplot syntax support

* Update gnuplot.yaml

* Add files via upload

* Update gnuplot.yaml

21 months agoAdd nushell syntax highlighting (#2486)
Matthias Thym [Sun, 17 Jul 2022 19:16:57 +0000 (21:16 +0200)]
Add nushell syntax highlighting (#2486)

21 months agoruntime/syntax/nix: Add support for block comments (#2488)
Peder Bergebakken Sundt [Sun, 17 Jul 2022 19:16:47 +0000 (21:16 +0200)]
runtime/syntax/nix: Add support for block comments (#2488)

21 months agosyntax/git-rebase-todo.yaml: support more commands (#2495)
Waldir Pimenta [Sun, 17 Jul 2022 19:16:35 +0000 (20:16 +0100)]
syntax/git-rebase-todo.yaml: support more commands (#2495)

For reference, see the list of supported commands in the help text of git's interactive rebase:
https://github.com/git/git/blob/v2.37.1/rebase-interactive.c#L43-L59

21 months agoadd new logo with white shadow, change readme title logo (#2497)
Vilém Zouhar [Sun, 17 Jul 2022 19:16:27 +0000 (21:16 +0200)]
add new logo with white shadow, change readme title logo (#2497)

21 months agoPHP: Add enum and keyword, and modify types (#2204)
USAMI Kenta [Sun, 17 Jul 2022 19:16:17 +0000 (04:16 +0900)]
PHP: Add enum and keyword, and modify types (#2204)

* Add enum keyword to PHP (8.1) syntax

* Specify only keywords that are valid as type declarations as PHP types

boolean, integer and resource are not valid type name.

* Add match keyword to PHP (8.2) syntax

21 months agoFix cross compilation from macOS
Zachary Yedidia [Fri, 15 Jul 2022 18:40:32 +0000 (11:40 -0700)]
Fix cross compilation from macOS

22 months agoUpdate zyedidia/pty for openbsd support
Zachary Yedidia [Sat, 25 Jun 2022 06:31:13 +0000 (23:31 -0700)]
Update zyedidia/pty for openbsd support

Fixes #2335

22 months agoUse zyedidia/clipper for external clipboard
Zachary Yedidia [Tue, 14 Jun 2022 12:40:57 +0000 (08:40 -0400)]
Use zyedidia/clipper for external clipboard

Micro will now also search for a program called micro-clip for handling
the clipboard. This allows the user to make a program called micro-clip
that micro will call out to for performing copy/paste. For copy it will
be called with `micro-clip -i <reg>` and the text will be provided on
stdin. For paste it will be called with `micro-clip -o <reg>` and micro
expects the text to be provided on stdout.

22 months agoUpdate clipboard for WSL support
Zachary Yedidia [Sun, 12 Jun 2022 14:39:33 +0000 (15:39 +0100)]
Update clipboard for WSL support

22 months agoAdd discussions note to readme
Zachary Yedidia [Fri, 10 Jun 2022 10:19:05 +0000 (11:19 +0100)]
Add discussions note to readme

22 months agoUpdate tcell for OSC 52 fix
Zachary Yedidia [Wed, 8 Jun 2022 22:47:56 +0000 (23:47 +0100)]
Update tcell for OSC 52 fix

Ref #2444

22 months agoRegister `Brewfile`s as Ruby files (#2432)
Ethan Kinnear [Tue, 7 Jun 2022 23:07:59 +0000 (18:07 -0500)]
Register `Brewfile`s as Ruby files (#2432)

A `Brewfile` (sometimes named `.Brewfile`) is a bundler for Homebrew packages.
Brewfiles are written in Ruby and are functionally similar to Gemfiles.

`homebrew-bundle` on GitHub: <https://github.com/Homebrew/homebrew-bundle>.
`brew bundle` Manpage: <https://docs.brew.sh/Manpage#bundle-subcommand>.

22 months agofix: add "unknown" type (#2445)
Ruzie [Tue, 7 Jun 2022 23:07:38 +0000 (19:07 -0400)]
fix: add "unknown" type (#2445)

23 months agoJulia syntax improvements (#2415)
Mikko [Sun, 15 May 2022 20:00:59 +0000 (23:00 +0300)]
Julia syntax improvements (#2415)

* fix D syntax highlighting for integer literals with underscores

* improve julia syntax highlighting for strings, chars and operators

23 months agoLua syntax highlighting: Various fixes (#2426)
Lars Müller [Sun, 15 May 2022 20:00:44 +0000 (22:00 +0200)]
Lua syntax highlighting: Various fixes (#2426)

23 months agoFix syntax highlighting of single-quoted strings (#2425)
Lars Müller [Sun, 15 May 2022 20:00:29 +0000 (22:00 +0200)]
Fix syntax highlighting of single-quoted strings (#2425)

2 years agoFix Lua number syntax highlighting (#2409)
Lars Müller [Thu, 28 Apr 2022 22:28:28 +0000 (00:28 +0200)]
Fix Lua number syntax highlighting (#2409)

* Fix Lua number syntax highlighting

* Number RegEx: Fix hex exponent

The hex exponent doesn't support hex digits, only decimals.

2 years agoUpdate README.md (#2400)
esdnm [Sun, 10 Apr 2022 23:36:19 +0000 (05:36 +0600)]
Update README.md (#2400)

2 years agoMerge
Zachary Yedidia [Sun, 27 Feb 2022 02:33:35 +0000 (18:33 -0800)]
Merge

2 years agoUpdate minimum required Go version to 1.16
Zachary Yedidia [Sun, 27 Feb 2022 02:33:12 +0000 (18:33 -0800)]
Update minimum required Go version to 1.16

Fixes #2361

2 years agoAdded lines and percentage statusbar directives (#2055)
0x5c [Tue, 22 Feb 2022 09:31:32 +0000 (04:31 -0500)]
Added lines and percentage statusbar directives (#2055)

- "lines" for the number of lines in the buffer
- "percentage" for the percentage of the file at the current line

Fixes zyedidia#2049

2 years agoError in documentation of +LINE:COL (#2205)
Philippe Eberli [Mon, 14 Feb 2022 21:32:46 +0000 (22:32 +0100)]
Error in documentation of +LINE:COL (#2205)

Its +LINE:COL not +LINE,COL

2 years agoruntime/syntax: add rudimentary Odin support (#2296)
ftphikari [Fri, 11 Feb 2022 22:15:34 +0000 (14:15 -0800)]
runtime/syntax: add rudimentary Odin support (#2296)

Odin is a general-purpose programming language with distinct typing,
built for high performance, modern systems, and built-in data-oriented
data types. The Odin Programming Language, the C alternative for
the joy of programming. The Data-Oriented Language for Sane Software
Development.

https://odin-lang.org/
https://odin-lang.org/docs/overview/
https://github.com/odin-lang/Odin

2 years agoMade apparent the functionality of the ftoptions plugin (#2321)
Evan Shimoniak [Fri, 11 Feb 2022 22:15:26 +0000 (14:15 -0800)]
Made apparent the functionality of the ftoptions plugin (#2321)

* Clarified meaning of indentchar setting

The description "sets the indentation character" combined with the default value of a space led me to believe that this was a way to set a preference for tabs/spaces and choose a number of spaces per indentation all at once. I've updated the description to try to make its true function clearer.

* Added note on rmtrailingws

This behavior was unexpected for me, so it's probably good to let other users know which option has precedence.

* Added details to help command

Initially I kept trying to use `help <command-name>` rather than `help commands`

* Added warning about ftoptions and tabstospaces

The current description for ftoptions states that it "alters some default options depending on the filetype", which hints at this behavior, but does not explicitly state it.

* Clarified specific functionality of ftoptions

2 years agoHelp: mention (un)indent in defaultkeys (#2358)
Andrey Bienkowski [Fri, 11 Feb 2022 22:13:35 +0000 (22:13 +0000)]
Help: mention (un)indent in defaultkeys (#2358)

2 years agoPerl syntax improvement (#2359)
Shura [Fri, 11 Feb 2022 22:13:27 +0000 (01:13 +0300)]
Perl syntax improvement (#2359)

* Perl syntax improvement

Fixed \" inside strings
Fixed comment coloring
Improved integer, float, strings variable coloring
Added regex coloring

* Update perl.yaml

2 years agoDetect more file types for git syntax highlighting (#2330)
Andrew [Sun, 9 Jan 2022 03:51:15 +0000 (19:51 -0800)]
Detect more file types for git syntax highlighting (#2330)

* Update git-commit.yaml

This will enable syntax highlighting for merge commit messages

* Update git-commit.yaml

2 years agoBump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8 (#2329)
dependabot[bot] [Fri, 7 Jan 2022 02:14:50 +0000 (18:14 -0800)]
Bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8 (#2329)

Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.7...v2.2.8)

---
updated-dependencies:
- dependency-name: gopkg.in/yaml.v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoMerge
Zachary Yedidia [Fri, 7 Jan 2022 02:11:15 +0000 (18:11 -0800)]
Merge

2 years agoUpdate luar import path
Zachary Yedidia [Fri, 7 Jan 2022 02:11:02 +0000 (18:11 -0800)]
Update luar import path

Fixes #2306

2 years agoAdd unofficial discord to readme
Zachary Yedidia [Sat, 1 Jan 2022 05:33:05 +0000 (00:33 -0500)]
Add unofficial discord to readme

2 years agoRaku syntax: fix comments (#2318)
Juan Francisco Cantero Hurtado [Fri, 31 Dec 2021 23:51:53 +0000 (00:51 +0100)]
Raku syntax: fix comments (#2318)

Code:
 # sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * }

2 years agoRaku syntax: Fix strings and comments (#2311)
Juan Francisco Cantero Hurtado [Fri, 31 Dec 2021 22:42:21 +0000 (23:42 +0100)]
Raku syntax: Fix strings and comments (#2311)

* Raku syntax: Fix strings and comments

Problematic code:
my @array1 = [
   "'", "a", "b"
];
my @array2 = [
   '"', 'a', 'b'
];
my @array3 = [
   "#", "a", "b"
];

I deleted "default" because it was breaking comments with urls after
of my changes.

Some parts were taken from:
https://github.com/hankache/raku.nanorc/blob/master/raku.nanorc

* Raku syntax: fix strings

Code:
sub xyz(Str is encoded('utf8')) returns int32 is native('asdf') { * }
sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * }

From python3.yaml

2 years agoFix repo.json info in plugin docs (#2313)
Reilly Wood [Fri, 31 Dec 2021 07:06:53 +0000 (02:06 -0500)]
Fix repo.json info in plugin docs (#2313)

2 years agoAdjust default keybinding text (#2293)
Owen Valentine [Sat, 25 Dec 2021 03:32:15 +0000 (05:32 +0200)]
Adjust default keybinding text (#2293)

Fixes #2287

2 years agoFix the syntax for Raku variables. (#2309)
Juan Francisco Cantero Hurtado [Wed, 22 Dec 2021 04:47:31 +0000 (05:47 +0100)]
Fix the syntax for Raku variables. (#2309)

The current version has problems with the last argument and the
brackets in this code:

sub myfunction(Int $x1, Int $x2){

}

Taken from:
https://github.com/hankache/raku.nanorc/blob/master/raku.nanorc

2 years agoFix edge case when comment is at start of line (#2237)
Jake Leahy [Mon, 6 Dec 2021 01:45:10 +0000 (12:45 +1100)]
Fix edge case when comment is at start of line (#2237)

2 years agoadd more types for nim (#2284)
antonl05 [Tue, 23 Nov 2021 06:41:04 +0000 (12:11 +0530)]
add more types for nim (#2284)

2 years agoFix
Zachary Yedidia [Tue, 23 Nov 2021 02:46:36 +0000 (18:46 -0800)]
Fix

2 years agoUse abspath for local glob settings
Zachary Yedidia [Tue, 23 Nov 2021 02:45:19 +0000 (18:45 -0800)]
Use abspath for local glob settings

Ref #2276

2 years agoAdd support for alternatives system in Debian package (#1935)
Hugo Hromic [Wed, 17 Nov 2021 23:51:40 +0000 (23:51 +0000)]
Add support for alternatives system in Debian package (#1935)

* Allows for micro to be selectable in the `editor` group
* Use same priority as in the nano package

Ref: https://wiki.debian.org/DebianAlternatives

2 years agoFix linter help formatting (#2280)
Matthias Thym [Wed, 17 Nov 2021 20:59:16 +0000 (21:59 +0100)]
Fix linter help formatting (#2280)

2 years agoPython syntax: multiline string should be constant.string, not comment (#2268)
abaldota [Mon, 15 Nov 2021 05:54:56 +0000 (05:54 +0000)]
Python syntax: multiline string should be constant.string, not comment (#2268)

* Python syntax: multiline string should be comment.string, not comment 

''' delimits multiline strings, not comments

* Python syntax: multiline string should be comment.string, not comment 

''' delimits multiline strings, not comments

* Update python3.yaml for python3.10 keywords

2 years agoREADME: add MacPorts install info (#2265)
Herby Gillot [Sun, 7 Nov 2021 03:18:24 +0000 (23:18 -0400)]
README: add MacPorts install info (#2265)

2 years agoClarified some documentation (#2259)
Evan Shimoniak [Tue, 2 Nov 2021 20:26:14 +0000 (13:26 -0700)]
Clarified some documentation (#2259)

* Clarified meaning of indentchar setting

The description "sets the indentation character" combined with the default value of a space led me to believe that this was a way to set a preference for tabs/spaces and choose a number of spaces per indentation all at once. I've updated the description to try to make its true function clearer.

* Added note on rmtrailingws

This behavior was unexpected for me, so it's probably good to let other users know which option has precedence.

* Added details to help command

Initially I kept trying to use `help <command-name>` rather than `help commands`

2 years agoFix makefile for cross compilation
Zachary Yedidia [Fri, 29 Oct 2021 04:47:23 +0000 (04:47 +0000)]
Fix makefile for cross compilation

2 years agoFix regression: non-working direct colors in syntax files (#2252)
Dmitry Maluka [Wed, 27 Oct 2021 22:12:55 +0000 (00:12 +0200)]
Fix regression: non-working direct colors in syntax files (#2252)

After 9ad4437, directly specifying color names (instead of syntax groups)
in syntax files no longer works. In particular *.patch and *.diff files
are not highlighted, since in patch.yaml direct colors names are used.

Restore the previous behavior of GetColor (fallback to direct colors if
no syntax group found) to fix this regression, but also make some changes
in StringToStyle and StringToColor to still fix the issue which was fixed
by 9ad4437. In other words, ensure that there is no confusion between
direct colors ("red", "green" etc) and syntax groups omitted in the
colorscheme file.

2 years agoUpdate makefile generation rules
Zachary Yedidia [Wed, 29 Sep 2021 23:30:20 +0000 (16:30 -0700)]
Update makefile generation rules

Ref #2229

2 years agoSupport for highlighting all search matches (hlsearch) (#1762)
Dmitry Maluka [Tue, 28 Sep 2021 20:39:03 +0000 (22:39 +0200)]
Support for highlighting all search matches (hlsearch) (#1762)

* Support for highlighting all search matches (hlsearch)

hlsearch is implemented efficiently using the buffer's line array,
somewhat similarly to the syntax highlighting.
Unlike the syntax highlighter which highlights the entire file,
hlsearch searches for matches for the displayed lines only.
Matches are searched when the given line is displayed first time
or after it was modified. Otherwise the previously found matches
are used.

* Add UnhighlightSearch action

and add it to the list of actions triggered by Esc key by default.

* Add comment explaining the purpose of search map

* Add hlsearch colors to colorschemes

Mostly just copied from the corresponding original (mostly vim) colorschemes.

* Highlight matches during/after replace as well

As a side effect it also changes the last search value, i.e. affects FindNext
and FindPrevious, but it's probably fine. In vim it works the same way.

* Improve hlsearch option description

2 years agoFix some issues with default colors in colorschemes (#2225)
Dmitry Maluka [Tue, 28 Sep 2021 20:30:29 +0000 (22:30 +0200)]
Fix some issues with default colors in colorschemes (#2225)

* Fix default colors for unconfigured syntax groups

When GetColor is called for a syntax group not specified in the
colorscheme, it should fallback not to the terminal's default colors
(tcell.DefaultColor) but to the colorscheme's defaults (DefStyle)
which may be different from tcell.DefaultColor.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then dots and commas in Go files
("symbol" syntax group in go.yaml) are displayed black on a dark
background, i.e. barely visible.

* Avoid using terminal's default colors directly

If a syntax group color is set to "default" (which we have for some
syntax groups in some colorschemes), it defaults to the terminal's
default colors (tcell.DefaultColor), which is fine for 16-color
colorschemes but not quite fine for truecolor and 256-color
colorschemes which should not depend on the terminal colors.
It should default to the colorscheme's default (DefStyle) instead.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then "bool" type in C files
("type.extended" syntax group in c.yaml) is displayed black on a dark
background, i.e. barely visible.

2 years agoMake 'make' do the same as 'make build' (#2217)
Dmitry Maluka [Fri, 24 Sep 2021 21:40:26 +0000 (23:40 +0200)]
Make 'make' do the same as 'make build' (#2217)

Fix a slight regression after ec3292: when 'make' is run without specifying
a target, it counter-intuitively runs fetch-tags instead of building micro.

2 years agoFix #2190: Document goto command in commands.md (#2218)
Ryan Westlund [Fri, 24 Sep 2021 21:40:11 +0000 (21:40 +0000)]
Fix #2190: Document goto command in commands.md (#2218)

2 years agoFix #1943: 'Duplicated line' message being wrong (#2219)
Ryan Westlund [Fri, 24 Sep 2021 21:39:58 +0000 (21:39 +0000)]
Fix #1943: 'Duplicated line' message being wrong (#2219)

2 years agoSyntax Highlighting Support for FreeBSD Kernel Configuration Files (#2220)
TogoorooDev [Fri, 24 Sep 2021 21:39:46 +0000 (14:39 -0700)]
Syntax Highlighting Support for FreeBSD Kernel Configuration Files (#2220)

* added FreeBSD kernel configuration file format

* updated format, notably to highlight the word 'include'

2 years agonormalize path - force slash separator to access embed FS (#2197)
Ali Kefia [Wed, 25 Aug 2021 20:26:54 +0000 (22:26 +0200)]
normalize path - force slash separator to access embed FS (#2197)

2 years agoBuild : using go:generate and go:embed (#2195)
Ali Kefia [Wed, 25 Aug 2021 02:02:29 +0000 (04:02 +0200)]
Build : using go:generate and go:embed (#2195)

* using go:generate and go:embed

* fix import

2 years agoIgnore tool files
Zachary Yedidia [Sat, 21 Aug 2021 22:07:43 +0000 (18:07 -0400)]
Ignore tool files

2 years agoMore style improvements
Zachary Yedidia [Sat, 21 Aug 2021 22:04:08 +0000 (18:04 -0400)]
More style improvements

2 years agoMerge
Zachary Yedidia [Sat, 21 Aug 2021 21:58:35 +0000 (17:58 -0400)]
Merge

2 years agoImprove comments
Zachary Yedidia [Sat, 21 Aug 2021 21:58:30 +0000 (17:58 -0400)]
Improve comments

2 years agoremove carriage return from -clean prompt and fix broken logic (#2186)
Andrew Clarke [Sat, 21 Aug 2021 04:30:16 +0000 (14:30 +1000)]
remove carriage return from -clean prompt and fix broken logic (#2186)

2 years agoUpdate comment filetype when commenting
Zachary Yedidia [Fri, 20 Aug 2021 18:42:38 +0000 (14:42 -0400)]
Update comment filetype when commenting

2 years agoMerge branch 'master' of https://github.com/zyedidia/micro
Zachary Yedidia [Fri, 20 Aug 2021 17:56:22 +0000 (13:56 -0400)]
Merge branch 'master' of https://github.com/zyedidia/micro

2 years agoFix save with sudo auto-detection and sudo/doas message
Zachary Yedidia [Fri, 20 Aug 2021 17:55:59 +0000 (13:55 -0400)]
Fix save with sudo auto-detection and sudo/doas message

2 years agoFix formatting
Zachary Yedidia [Wed, 18 Aug 2021 20:55:51 +0000 (16:55 -0400)]
Fix formatting

2 years agoUpdate install instructions
Zachary Yedidia [Wed, 18 Aug 2021 20:55:22 +0000 (16:55 -0400)]
Update install instructions

2 years agoAdd eget to install instructions
Zachary Yedidia [Wed, 18 Aug 2021 20:13:17 +0000 (16:13 -0400)]
Add eget to install instructions