]>
git.lizzy.rs Git - micro.git/log
Zachary Yedidia [Sat, 7 Aug 2021 00:45:12 +0000 (20:45 -0400)]
Merge branch 'pyfisch-patch-3'
Zachary Yedidia [Sat, 7 Aug 2021 00:44:57 +0000 (20:44 -0400)]
Merge branch 'patch-3' of https://github.com/pyfisch/micro into pyfisch-patch-3
riley [Sat, 7 Aug 2021 00:38:22 +0000 (20:38 -0400)]
Highlight racket files as lisp (#1931)
Add syntax highlighting for [racket](racket-lang.org), a (variant of scheme which is a) variant of lisp which uses the .rkt extension.
AAAA [Sat, 7 Aug 2021 00:37:42 +0000 (19:37 -0500)]
Update v.yaml (#1925)
Improvements:
- Use proper scope names for better colorization
- Better regex to detect binary, octal, decimal and hexadecimal numbers
- Extend some definitions based on the Vlang docs
Co-authored-by: AAAA <dev@onerbs.com>
Zachary Yedidia [Tue, 3 Aug 2021 04:07:14 +0000 (00:07 -0400)]
Fixes for syntax and docs
Fixes #2163
Ref #2173
Andrey Nering [Tue, 3 Aug 2021 01:13:05 +0000 (22:13 -0300)]
Document that "bubblegum" is a light theme (#2153)
Zachary Yedidia [Tue, 3 Aug 2021 01:06:28 +0000 (21:06 -0400)]
Merge
Zachary Yedidia [Tue, 3 Aug 2021 01:05:22 +0000 (21:05 -0400)]
Allow aborting while opening a file with backup
Also fixes an issue where the abort prompt consumes interrupt signals.
Fixes #2151
pyfisch [Wed, 21 Jul 2021 19:44:32 +0000 (21:44 +0200)]
More precise filename detection for shell scripts
Make the regular expression much more precise:
* match literal dots instead of any char (match rc.conf but not rcXconf)
* match special filenames exactly (match PKGBUILD but not myPKGBUILD.something)
Run build-all to update internal/config/runtime.go
closes #2163
pyfisch [Wed, 21 Jul 2021 19:02:28 +0000 (21:02 +0200)]
Update rust syntax: don't highlight lifetimes (#2164)
Work-around rust lifetimes and character literals both using single quotes.
pyfisch [Wed, 21 Jul 2021 16:37:41 +0000 (18:37 +0200)]
Update rust syntax: char literal (#2162)
Highlight character literals started with a single quote (').
Importantly this ensures correct highlighting for the character literal '"'.
Limitation: rust char literals contain exactly one character, however this isn't checked by the highlighter.
Closes #2160
Ali Kefia [Sun, 18 Jul 2021 22:30:52 +0000 (00:30 +0200)]
Fix name collision on linter name (swiftc) (#2158)
Ali Kefia [Fri, 16 Jul 2021 19:01:50 +0000 (21:01 +0200)]
Shellcheck as a new shell linter + runtime.go out of git control (#2157)
* shellcheck as a new shell linter + runtime.go out of git control
* keep runtime.go and keep both shfmt and shellcheck since we can remove from custom conf
Rylee [Wed, 14 Jul 2021 03:37:48 +0000 (13:37 +1000)]
Add alcritty and foot to the list of OSC 52 supporting terminals (#2154)
Ali Kefia [Wed, 14 Jul 2021 03:37:22 +0000 (05:37 +0200)]
Search the last match on line when search back (#2156)
Zachary Yedidia [Mon, 5 Jul 2021 00:00:49 +0000 (20:00 -0400)]
Add default binding for FindLiteral
Zachary Yedidia [Thu, 17 Jun 2021 21:11:35 +0000 (17:11 -0400)]
Merge
Zachary Yedidia [Thu, 17 Jun 2021 21:10:59 +0000 (17:10 -0400)]
Update zyedidia/pty from upstream
Fixes #2138
vandervoortj [Tue, 15 Jun 2021 21:56:31 +0000 (17:56 -0400)]
Add nix language syntax (#2024)
* Create nix.yaml
Add nix language syntax
* Add nix-linter
Kethan [Sun, 13 Jun 2021 03:52:08 +0000 (20:52 -0700)]
Fix typo in tutorial.md (#2130)
Dmitry Maluka [Wed, 9 Jun 2021 21:04:11 +0000 (23:04 +0200)]
find: select prefilled text (#2127)
The new feature of prefilling the search bar with the selected text (added
in
3d0b5db ) has an annoying side effect: if we do have some text selected
but we want to search for some other pattern, not the selected text,
then we have to manually delete the prefilled text before we can start
entering our wanted search pattern.
A simple solution is to select the prefilled text, so that we can replace it
with our pattern right away just by typing, without any additional keystrokes.
Balló György [Sun, 6 Jun 2021 21:53:33 +0000 (23:53 +0200)]
Add desktop-id to Appstream Metainfo (#2122)
It's needed for tools like appstream-generator to detect the associated desktop file.
Ali Kefia [Wed, 2 Jun 2021 20:04:31 +0000 (22:04 +0200)]
find: prefill with selection (#2115)
* find: prefill with selection
* keep search func - could be used in plugins
Jeff Zhao [Tue, 1 Jun 2021 23:34:10 +0000 (19:34 -0400)]
Improve linter performance (#2083)
Only compute args if we are actually going to use it
Rosetta H&S [Tue, 1 Jun 2021 23:33:40 +0000 (07:33 +0800)]
Add highlighting for user-defined types (#2107)
* Added highlighting for user-defined types
Provides automatic highlighting of user-defined types ending with either "_t" or "_T", as is seen in editors such as Nano, or within GitHub itself.
* Update cpp.yaml
Héctor M. Monacci [Tue, 1 Jun 2021 23:33:06 +0000 (20:33 -0300)]
Dont take # as comment when preceded by backslash (#2112)
When escaped with a backslash (e.g., inside a regex) the numeral char, ```#```, shouldn't be interpreted as a beginning of comment.
Zachary Yedidia [Tue, 1 Jun 2021 00:26:32 +0000 (20:26 -0400)]
Fix erlang comment syntax
Zachary Yedidia [Mon, 24 May 2021 05:43:11 +0000 (01:43 -0400)]
Update tcell
Fixes #2108
Zachary Yedidia [Wed, 19 May 2021 18:58:00 +0000 (14:58 -0400)]
Warn for readonly instead of setting option
Fixes #2106
Zachary Yedidia [Sun, 16 May 2021 20:35:47 +0000 (16:35 -0400)]
Update tcell
Fixes #2081
Zachary Yedidia [Wed, 12 May 2021 00:36:23 +0000 (20:36 -0400)]
Merge pull request #2076 from dmaluka/softwrap-improvement2
Softwrap improvements
Zachary Yedidia [Wed, 21 Apr 2021 01:28:37 +0000 (21:28 -0400)]
Merge
Zachary Yedidia [Wed, 21 Apr 2021 01:27:59 +0000 (21:27 -0400)]
Handle SIGHUP properly
Fixes #2085
Not the nicest solution but it will do for now.
Dmitry Maluka [Thu, 8 Apr 2021 23:48:58 +0000 (01:48 +0200)]
Fix up X,Y values in BufView
Let's return absolute X, Y values, rather than relative to the bufwindow.
Dmitry Maluka [Thu, 8 Apr 2021 21:32:00 +0000 (23:32 +0200)]
Replace BufWidth & BufHeight with BufView
BufView returns not only the buffer's width and height but also its
x,y position. It may be useful e.g. for checking if a mouse click was
on the actual buffer or ourside it, e.g. on the gutter.
Dmitry Maluka [Wed, 17 Mar 2021 22:25:15 +0000 (23:25 +0100)]
Don't highlight padding spaces in word wrapping
Don't highlight space characters at the right edge which are used just
for padding after line break in word wrapping, i.e. don't correspond to
any real characters in the buffer.
This makes it look nicer e.g. when selecting word-wrapped text.
Dmitry Maluka [Wed, 17 Mar 2021 21:34:30 +0000 (22:34 +0100)]
Implement word wrapping
Fixes #264
Fixes #1644
Dmitry Maluka [Sun, 7 Mar 2021 13:56:00 +0000 (14:56 +0100)]
Simplify LocFromVisual implementation
Now that we have LocFromVLoc, we can radically simplify the code of LocFromVisual.
Less duplication, less potential bugs.
Dmitry Maluka [Sat, 6 Mar 2021 22:43:36 +0000 (23:43 +0100)]
Implement moving cursor up/down within a wrapped line
Modified behavior of CursorUp, CursorDown, CursorPageUp etc:
if softwrap is enabled, cursor moves by visual lines, not logical lines.
TODO: implement it also for Home and End keys: move cursor to the
visual start or end of a line. I haven't implemented it for now, because
I'm not sure what should be the behavior of StartOfTextToggle then
(considering that Home key is bound to StartOfTextToggle by default).
Fixes #1598
Dmitry Maluka [Wed, 17 Mar 2021 20:16:52 +0000 (21:16 +0100)]
Add VLoc, VLocFromLoc and LocFromVLoc
VLoc allows any location in the buffer to be represented as a visual
location in the linewrapped buffer. In particular, this is useful
for implementing moving cursor up and down within a wrapped line.
Dmitry Maluka [Wed, 3 Mar 2021 19:09:35 +0000 (20:09 +0100)]
Fix horizontal scrolling with a wide rune at the right edge of window
Dmitry Maluka [Wed, 17 Mar 2021 19:13:25 +0000 (20:13 +0100)]
Fix displaying incomplete tab or wide rune at the right edge of window
Fix displaying tabs and wide runes which don't fit in the window.
Don't overwrite the vertical divider and the adjacent window.
- For tabs: display only as many of the tab's spaces as fit in the window.
- For wide runes: if a rune doesn't fit, don't display it in this line at all.
If softwrap is on, display this rune in the next line.
Fixes #1979
Dmitry Maluka [Wed, 3 Mar 2021 19:51:06 +0000 (20:51 +0100)]
Fix horizontal scrolling issue after toggling softwrap on/off
Fixes #645
Dmitry Maluka [Sat, 27 Feb 2021 16:37:15 +0000 (17:37 +0100)]
Add BufWidth and BufHeight
Fixes issue with the usage of a slightly incorrect buffer height value
(v.Height should be v.Height-1 if statusline is displayed).
Also, to avoid too many duplications, the code reorganized a little:
buffer display params (width, height, gutter offset and others) are
calculated in a single place.
Alex Tsantilis [Wed, 7 Apr 2021 20:21:19 +0000 (16:21 -0400)]
Update and rename perl6.yaml to raku.yaml (#1927)
The language has been renamed but still aims to support the old file extensions for a time.
Laszlo Gombos [Wed, 7 Apr 2021 20:20:57 +0000 (16:20 -0400)]
Improve patch file detection by adding a header rule. (#1942)
Dmitry Maluka [Wed, 7 Apr 2021 20:20:39 +0000 (22:20 +0200)]
Add buffer.WordAt (#2070)
Add buffer.WordAt function returning the word around a given location
in the buffer. Useful for plugins.
Dmitry Maluka [Wed, 7 Apr 2021 20:18:51 +0000 (22:18 +0200)]
Fix softwrap scrolling issues (#1981)
Softwrap implementation enhanced to fix various issues with scrolling,
centering, relocating etc.
The main idea is simple: work not with simple line numbers but
with (Line, Row) pairs, where Line is a line number in the buffer
and Row is a visual line (a row) number within this line.
The logic remains mostly the same, but simple arithmetic operations
on line numbers are replaced with corresponding operations on
(Line, Row) pairs.
Fixes #632, #1657
Zachary Yedidia [Mon, 8 Mar 2021 18:11:08 +0000 (13:11 -0500)]
Merge
Zachary Yedidia [Mon, 8 Mar 2021 18:10:52 +0000 (13:10 -0500)]
Update runewidth version
Fixes #1873
Zachary Yedidia [Sat, 6 Mar 2021 01:57:31 +0000 (20:57 -0500)]
Update snap badge
Zachary Yedidia [Tue, 2 Mar 2021 22:16:54 +0000 (17:16 -0500)]
Merge
Zachary Yedidia [Tue, 2 Mar 2021 22:16:19 +0000 (17:16 -0500)]
Fix noregex interactive replace
Fixes #2052
Zachary Yedidia [Tue, 2 Mar 2021 02:55:49 +0000 (21:55 -0500)]
Add ForceQuit action
Closes #1039
Dmitry Maluka [Mon, 22 Feb 2021 23:18:37 +0000 (00:18 +0100)]
Fix regressions in buffer settings initialization (#2035)
Fix regressions after
ba98b55 :
- Unable to override filetype autodetection by setting a specific filetype
for specific files, i.e. this doesn't work:
"*.h": {
"filetype": "c++"
},
- Unable to enable/disable syntax highlighting for specific files,
i.e. this doesn't work:
"*.c": {
"syntax": false
},
- "readonly" setting doesn't work (neither global nor per-filetype).
Zachary Yedidia [Sat, 20 Feb 2021 19:27:58 +0000 (14:27 -0500)]
Remove conf highlighting (too many conflicts)
Fixes #2031
The conf highlighter interferes with many more specific highlighters and
doesn't provide much value on its own.
Zachary Yedidia [Fri, 19 Feb 2021 00:02:23 +0000 (19:02 -0500)]
Fix #2030: warn for invalid pane type
relrelb [Thu, 18 Feb 2021 03:28:19 +0000 (05:28 +0200)]
Improve C syntax highlighting (#2015)
Nikolay Korotkiy [Thu, 18 Feb 2021 03:27:56 +0000 (06:27 +0300)]
Add Gemini syntax file (#2016)
Sebastian Kolind Sørensen [Thu, 18 Feb 2021 03:27:45 +0000 (04:27 +0100)]
Add .tsx support for Typescript syntax (#2021)
* Update to look for tsx files also
* Shorten filename detection
ejose19 [Thu, 18 Feb 2021 03:27:13 +0000 (00:27 -0300)]
docs: update Arch Linux installation method (#2028)
Zachary Yedidia [Sun, 7 Feb 2021 18:14:40 +0000 (13:14 -0500)]
Only initialize buffer settings once
Ref #2009
Zachary Yedidia [Thu, 28 Jan 2021 03:52:40 +0000 (22:52 -0500)]
gofmt
Zachary Yedidia [Wed, 27 Jan 2021 18:49:47 +0000 (13:49 -0500)]
Merge branch 'ilius-PR-find-on-type'
Zachary Yedidia [Wed, 27 Jan 2021 18:49:38 +0000 (13:49 -0500)]
Rename to incsearch
Zachary Yedidia [Wed, 27 Jan 2021 18:48:01 +0000 (13:48 -0500)]
Merge branch 'PR-find-on-type' of https://github.com/ilius/micro into ilius-PR-find-on-type
Siddhant N Trivedi [Sat, 9 Jan 2021 18:39:21 +0000 (00:09 +0530)]
Fix some quality issues (#1914)
* Add .deepsource.toml
* Fix unnecessary typecasting on `bytes.Buffer`
* Fix check for empty string
* Replace nested if block with else-if
* Replace nested if block with else-if
* Replaced string.Replace() with string.ReplaceAll where n<0
* Remove deepsource toml file
Signed-off-by: siddhant-deepsource <siddhant@deepsource.io>
Co-authored-by: DeepSource Bot <bot@deepsource.io>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Peter Kramarik [Fri, 8 Jan 2021 22:06:49 +0000 (23:06 +0100)]
fix vue syntax highlight (#1982)
Marduk Bolaños [Wed, 6 Jan 2021 00:59:28 +0000 (01:59 +0100)]
Added multiline strings to the Scala syntax highlighter (#1969)
In Scala multiline strings are constructed just like in Python
```
val message = """
This
is
a
message
"""
Dmitry Maluka [Wed, 6 Jan 2021 00:37:49 +0000 (01:37 +0100)]
Fix non-working TryBindKey and UnbindKey (#1970)
Fixed regression: since merging keybindings branch, TryBindKey and
UnbindKey and accordingly "bind" and "unbind" commands don't work
(fail to unmarshal bindings.json).
This is just a quick fixup to make TryBindKey and UnbindKey work again.
They still work with "buffer" bindings only.
Saeed Rasooli [Mon, 4 Jan 2021 06:59:45 +0000 (10:29 +0330)]
add settings option "findontype" to allow disabling search-on-type
Zachary Yedidia [Tue, 29 Dec 2020 19:13:54 +0000 (14:13 -0500)]
Update readme
Zachary Yedidia [Sun, 27 Dec 2020 23:43:07 +0000 (18:43 -0500)]
Merge branch 'a11ce-python-highlight-zero'
Zachary Yedidia [Sun, 27 Dec 2020 23:42:53 +0000 (18:42 -0500)]
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce-python-highlight-zero
worldmaker [Sun, 27 Dec 2020 23:38:16 +0000 (07:38 +0800)]
fix the missing break in JumpToMatchingBrace (#1960)
In JumpToMatchingBrace, the loop should stop immediately after finding the matching bracket.
It causes multiple jumps in certain situations:
`(I [ ]{ }) => ( I[ ]{ })`
Zachary Yedidia [Sat, 26 Dec 2020 19:45:27 +0000 (14:45 -0500)]
Merge
Zachary Yedidia [Sat, 26 Dec 2020 19:45:22 +0000 (14:45 -0500)]
Only use internal clipboard on error
Dmitry Maluka [Wed, 23 Dec 2020 20:21:20 +0000 (21:21 +0100)]
Don't automatically disable readonly option (#1957)
Fix the regression after
3b34a02 : setting readonly option to true
in onBufferOpen lua callback doesn't work, since it is automatically
reset to false if write permission is not denied.
Dmitry Maluka [Wed, 23 Dec 2020 20:21:01 +0000 (21:21 +0100)]
Fix potential file leaks (#1958)
Zachary Yedidia [Sun, 20 Dec 2020 21:53:18 +0000 (16:53 -0500)]
Update hlint format
Zachary Yedidia [Sun, 20 Dec 2020 19:53:04 +0000 (14:53 -0500)]
Update runtime
Zachary Yedidia [Sun, 20 Dec 2020 18:05:10 +0000 (13:05 -0500)]
Fix stat error detection
Fixes #1955
Zachary Yedidia [Sun, 20 Dec 2020 06:08:41 +0000 (01:08 -0500)]
Add Dracula colorscheme to defaults
See https://draculatheme.com/micro.
Dmitry Maluka [Sun, 20 Dec 2020 05:35:57 +0000 (06:35 +0100)]
Document undocumented colorscheme groups (#1939)
Zachary Yedidia [Fri, 18 Dec 2020 02:55:59 +0000 (21:55 -0500)]
Merge
Zachary Yedidia [Fri, 18 Dec 2020 02:54:18 +0000 (21:54 -0500)]
Improve file permission detection
Mark files as readonly automatically if write permission is denied.
Display errors when opening files (except for non-existence errors).
Fixes #1224
Zachary Yedidia [Thu, 17 Dec 2020 02:35:07 +0000 (21:35 -0500)]
Remove clipboard error message
a11ce [Tue, 15 Dec 2020 23:57:28 +0000 (18:57 -0500)]
Highlight 0 as a constant number in python3
Alekhine51 [Wed, 9 Dec 2020 03:43:37 +0000 (22:43 -0500)]
Added a sentence to colors.md clarifying that the truecolor environment variable has to be created by the user. (#1928)
Carlos Henrique Guardão Gandarez [Sat, 21 Nov 2020 06:46:17 +0000 (03:46 -0300)]
Make more libraries available (#1917)
* Make more libraries available to plugin dvelopment
* Add Unzip function to util
Zachary Yedidia [Mon, 16 Nov 2020 19:07:22 +0000 (14:07 -0500)]
Clear prompt before callback
Ref #1913
Zachary Yedidia [Fri, 6 Nov 2020 18:43:40 +0000 (13:43 -0500)]
Disable fake cursor for Windows Terminal
Ref #1900
Zachary Yedidia [Thu, 5 Nov 2020 20:52:25 +0000 (15:52 -0500)]
Fix internal string binding representation
Zachary Yedidia [Thu, 5 Nov 2020 20:39:29 +0000 (15:39 -0500)]
Merge
Zachary Yedidia [Thu, 5 Nov 2020 20:39:05 +0000 (15:39 -0500)]
Enable ignorecase by default
Closes #1908
Dmitry Maluka [Tue, 20 Oct 2020 00:36:14 +0000 (02:36 +0200)]
Fix buffer.RuneAt (#1895)
Fix buffer.RuneAt returning the rune not at the given location (as the
documentation claims) but just before it.
Dmitry Maluka [Sun, 18 Oct 2020 00:53:08 +0000 (02:53 +0200)]
Add tabbar.active color group (#1831)
Added tabbar.active color group for displaying the name of the active
tab in the tabbar with different colors.
If tabbar.active is not defined in the colorscheme, the active tab name
is displayed with the same colors as inactive ones.
Ref #1646
Dmitry Maluka [Sun, 18 Oct 2020 00:48:39 +0000 (02:48 +0200)]
Fix suggestions display (#1825)
Fix the following bugs:
- If a split pane is not at the left edge of the screen, the statusline
with suggestions for it is displayed at wrong place.
- When keymenu is enabled, the statusline with suggestions is not
displayed at all.
XeroOl [Fri, 16 Oct 2020 05:44:48 +0000 (00:44 -0500)]
update lua.yaml (#1892)
added `break` as a keyword
Zachary Yedidia [Fri, 9 Oct 2020 03:33:34 +0000 (23:33 -0400)]
Fix autosave not running by default