]>
git.lizzy.rs Git - micro.git/log
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
Zachary Yedidia [Tue, 6 Oct 2020 21:39:20 +0000 (17:39 -0400)]
Update runtime
Zachary Yedidia [Tue, 6 Oct 2020 21:32:09 +0000 (17:32 -0400)]
Merge
Zachary Yedidia [Tue, 6 Oct 2020 21:32:06 +0000 (17:32 -0400)]
Update tcell for alacritty and konsole
ThatXliner [Tue, 6 Oct 2020 20:56:08 +0000 (13:56 -0700)]
:pencil2: : Added more Code tags (#1875)
I added more syntax highlighting for python comment code tags. Though this should be implemented for all languages...
Marduk Bolaños [Tue, 6 Oct 2020 20:55:47 +0000 (22:55 +0200)]
Fixed help topic name (#1876)
The help topic is called `commands` not `command`
Zachary Yedidia [Tue, 6 Oct 2020 20:54:46 +0000 (16:54 -0400)]
Update tcell to 2.0.5
Zachary Yedidia [Thu, 24 Sep 2020 01:54:25 +0000 (21:54 -0400)]
Fix typo
Closes #1869
Zachary Yedidia [Mon, 21 Sep 2020 05:21:59 +0000 (01:21 -0400)]
Fix palette colors with tcell v2
Ryan Westlund [Fri, 18 Sep 2020 03:20:28 +0000 (23:20 -0400)]
Fix Crystal syntax highlighting (#1844)
Don't highlight things that don't exist, add some missing keywords,
highlight true/false/nil as constants instead of keywords, and
highlight types as types instead of constants.
MasFlam [Fri, 18 Sep 2020 03:19:41 +0000 (05:19 +0200)]
Fix some left-over details in C++ syntax highlighting (#1865)
- move type cast keywords into operators, since that's their syntactic function
- fix a single dot being matched as a constant.number
- add the missing caret operator
MasFlam [Fri, 18 Sep 2020 03:19:32 +0000 (05:19 +0200)]
groovy highlight (#1866)
Sourya Vatsyayan [Wed, 16 Sep 2020 04:08:01 +0000 (09:38 +0530)]
Fix quality issues (#1856)
* Add .deepsource.toml
* Remove unnecessary comparison with bool
* Remove unnecessary use of slice
* Replace multiple `append`s with one
* Remove unnecessary wrapping of function call
* Fix check for empty string
* Simplify error creation with `fmt.Errorf`
* Fix defers before error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove untrappable `os.Kill` signal
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove empty else branch
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Add missing error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Merge variable declaration and assignment
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove unnecessary `nil` check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Revert changes to generated files
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove .deepsource.toml
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
Co-authored-by: DeepSource Bot <bot@deepsource.io>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Ertu (Er2, Err) [Wed, 16 Sep 2020 04:06:40 +0000 (07:06 +0300)]
coffeescript syntax fix (#1861)
Zachary Yedidia [Tue, 15 Sep 2020 05:11:59 +0000 (01:11 -0400)]
Enable xterm automatically if screen init fails
Zachary Yedidia [Mon, 14 Sep 2020 15:30:20 +0000 (11:30 -0400)]
Update tcell
Zachary Yedidia [Mon, 14 Sep 2020 05:14:31 +0000 (01:14 -0400)]
Merge
Zachary Yedidia [Mon, 14 Sep 2020 05:14:28 +0000 (01:14 -0400)]
Update tcell
MasFlam [Mon, 14 Sep 2020 04:06:47 +0000 (06:06 +0200)]
Overall syntax highlighting improvements for C++ (#1858)
* Overall syntax highlighting improvements for C++
Most of these changes are based on the information on cppreference.com;
specifically from here: https://en.cppreference.com/w/cpp/keyword
- made `identifier` actually match any identifier
- add ~ as an operator
- add `static_assert` as a keyword (statement)
- add keywords that are interchangeable with operators as operators
- add keywords `sizeof`, `alignof` and `typeid` as operators
- add the quasi-keywords `asm`, `fortran` and `final`, `override`
- add the keyword `nullptr`
- add `_Pragma` as a preprocessor keyword
- add C++20 (concepts and modules) -related keywords
- add casting keywords
- add the keyword (specifier) `noexcept`
- remove `nothrow` (because it's not any more special than `vector` is)
- add `wchar_t` and `charXX_t` types
- add cv type keywords as `type.keyword`s
- move some fitting keywords into `type.keywords`
(mostly because they appear in/near type signatures etc.)
I didn't include coroutine-related language features,
primarily because there is no good source of information
about them other than the ISO C++ standard.
* Further changes to C++ syntax highlighting
- reverted the changes to the `identifier` regex, since most
colorschemes color it the same as `type`s and/or `statement`s
- fix the 2nd `type` regex (the word boundaries were in only two pipe-options)
- move `nullptr` back into `constant.bool`,
since it looks better in-editor this way (imo)
- add `?` as an operator
- add regexes that match all the correct number literals, and nothing else
(see https://en.cppreference.com/w/cpp/language/floating_literal)
(that is, if I haven't made a mistake)
Zachary Yedidia [Mon, 14 Sep 2020 04:05:55 +0000 (00:05 -0400)]
Merge
Zachary Yedidia [Mon, 14 Sep 2020 04:05:35 +0000 (00:05 -0400)]
Remove test option
Fix #1857
Zachary Yedidia [Mon, 14 Sep 2020 00:25:02 +0000 (20:25 -0400)]
Don't highlight parens in default theme
Zachary Yedidia [Sun, 6 Sep 2020 21:38:23 +0000 (17:38 -0400)]
Update keybinding docs
Also updates the pane type of `info` to `command` which is a more
descriptive name.
Zachary Yedidia [Sun, 6 Sep 2020 15:39:48 +0000 (11:39 -0400)]
Update tcell
Zachary Yedidia [Sun, 6 Sep 2020 01:59:19 +0000 (21:59 -0400)]
Replace meta with alt automatically, update tcell
Zachary Yedidia [Sat, 5 Sep 2020 18:52:35 +0000 (14:52 -0400)]
Update to tcell v2
Zachary Yedidia [Fri, 4 Sep 2020 17:36:23 +0000 (13:36 -0400)]
Never backup closed buffers
Zachary Yedidia [Sun, 30 Aug 2020 19:46:14 +0000 (15:46 -0400)]
Merge
Zachary Yedidia [Sun, 30 Aug 2020 19:46:11 +0000 (15:46 -0400)]
Properly close unmodified buffers on sigterm
Zachary Yedidia [Tue, 25 Aug 2020 19:21:18 +0000 (15:21 -0400)]
Update tcell
Dmitry Maluka [Sun, 23 Aug 2020 19:47:14 +0000 (21:47 +0200)]
AddToHistory function for plugins (#1830)
Add InfoBuf's method AddToHistory function which adds a new item
to the history for the prompt type `ptype`.
This function is not used by micro itself. It is useful for plugins
which add their own items to the history, bypassing the infobar
command line.
Peder B. Sundt [Sun, 23 Aug 2020 19:46:27 +0000 (21:46 +0200)]
Add improvements to the python3 syntax definitions (#1833)
* Python3: Add built-in object 'cls'
* Python3: Add the bitwise negation operator ~
* Python3: Add support for hexadeximal and binary numerical literals
* Python3: Rewrite '(__foo__|__bar__)' as '__(foo|bar)__', add known '__i.*__' methods
* Python3: Add __iter__ as a magic method, sort the list of magic methods
* Python3: Numerical literals: Add support for '_', disallow leading 0 for decimals
* fixup! Python3: Numerical literals: Add support for '_', disallow leading 0 for decimals
hex oct and bin have different sets of allowed digits
* Python3: Add support for floating point numbers with optional scientific notation
* Python3: stop single-line strings at EOL
* Python3: Add support for TODO and FIXME in comments
* Python3: Add support for the ^ bitwise xor operator
Peder B. Sundt [Sun, 23 Aug 2020 19:46:05 +0000 (21:46 +0200)]
Minor tweak to the railscast color scheme (#1834)
* Railscast: Change the color of operators to match keywords instead of identifiers
* Railscast: Add a color for `constant.specialChar`
Dmitry Maluka [Sun, 23 Aug 2020 19:45:43 +0000 (21:45 +0200)]
Add scrollbar color group (#1840)
Ref #1837
Bartek Pacia [Mon, 17 Aug 2020 17:04:44 +0000 (19:04 +0200)]
fix spelling (#1828)
Ryan Westlund [Fri, 14 Aug 2020 20:56:55 +0000 (16:56 -0400)]
Highlight static as keyword in Javascript files (#1824)
Dmitry Maluka [Thu, 13 Aug 2020 05:38:50 +0000 (07:38 +0200)]
Avoid duplicate entries in history (#1822)
Zachary Yedidia [Wed, 12 Aug 2020 05:18:18 +0000 (01:18 -0400)]
Merge
Zachary Yedidia [Wed, 12 Aug 2020 05:18:15 +0000 (01:18 -0400)]
Don't auto-relocate mouse events
Zachary Yedidia [Wed, 12 Aug 2020 02:18:10 +0000 (22:18 -0400)]
Improve showkey command
Ryan Westlund [Wed, 12 Aug 2020 01:39:57 +0000 (21:39 -0400)]
Improve Rust syntax highlighting (#1820)
Zachary Yedidia [Tue, 11 Aug 2020 18:36:58 +0000 (14:36 -0400)]
Enable registering raw events
Fixes #1821
Zachary Yedidia [Tue, 11 Aug 2020 05:43:41 +0000 (01:43 -0400)]
Don't overwrite user bindings
This fix still needs more work.
Ref #1821
Zachary Yedidia [Tue, 11 Aug 2020 00:34:10 +0000 (20:34 -0400)]
Ref #1819
Zachary Yedidia [Mon, 10 Aug 2020 16:24:29 +0000 (12:24 -0400)]
Fix JobSend stdin
Zachary Yedidia [Thu, 9 Jul 2020 17:25:24 +0000 (13:25 -0400)]
Record events in cursor
Zachary Yedidia [Wed, 1 Jul 2020 21:11:07 +0000 (17:11 -0400)]
Allow configuration for info/term bindings
This commit exposes the separate infopane bindings to configuration
from the user. This also adds support for separate bindings in the
terminal emulator view. Default bindings are provided, but can also
be rebound in bindings.json.
Zachary Yedidia [Wed, 1 Jul 2020 02:51:13 +0000 (22:51 -0400)]
Separate bindings for buffers and command bar
This commit separates actions in the command bar from actions in
a normal buffer, and implements what is needed to allow rebinding,
although an interface for command bar keybindings is not yet exposed
to the user.
Zachary Yedidia [Wed, 1 Jul 2020 01:25:54 +0000 (21:25 -0400)]
Preliminary support for key sequences
This commit adds support for binding key sequences such as
"<Ctrl-x><Ctrl-c>". This commit does not solve the problem
of global bindings yet, and therefore the command bar doesn't
work properly in this commit.
Zachary Yedidia [Mon, 29 Jun 2020 21:13:22 +0000 (17:13 -0400)]
Basic implementation of KeyTree
Zachary Yedidia [Mon, 29 Jun 2020 04:50:19 +0000 (00:50 -0400)]
Improve internal keyevent names
Robin Voetter [Wed, 5 Aug 2020 23:39:03 +0000 (01:39 +0200)]
Improve Zig syntax definitions (#1814)
* Improve Zig syntax definitions
* Remove duplicate definition of constant.number
* Make undefined a constant