]> git.lizzy.rs Git - micro.git/log
micro.git
3 years agoUpdate keybinding docs v2.0.7
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.

3 years agoUpdate tcell
Zachary Yedidia [Sun, 6 Sep 2020 15:39:48 +0000 (11:39 -0400)]
Update tcell

3 years agoReplace meta with alt automatically, update tcell
Zachary Yedidia [Sun, 6 Sep 2020 01:59:19 +0000 (21:59 -0400)]
Replace meta with alt automatically, update tcell

3 years agoUpdate to tcell v2
Zachary Yedidia [Sat, 5 Sep 2020 18:52:35 +0000 (14:52 -0400)]
Update to tcell v2

3 years agoNever backup closed buffers
Zachary Yedidia [Fri, 4 Sep 2020 17:36:23 +0000 (13:36 -0400)]
Never backup closed buffers

3 years agoMerge
Zachary Yedidia [Sun, 30 Aug 2020 19:46:14 +0000 (15:46 -0400)]
Merge

3 years agoProperly close unmodified buffers on sigterm
Zachary Yedidia [Sun, 30 Aug 2020 19:46:11 +0000 (15:46 -0400)]
Properly close unmodified buffers on sigterm

3 years agoUpdate tcell
Zachary Yedidia [Tue, 25 Aug 2020 19:21:18 +0000 (15:21 -0400)]
Update tcell

3 years agoAddToHistory function for plugins (#1830)
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.

3 years agoAdd improvements to the python3 syntax definitions (#1833)
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

3 years agoMinor tweak to the railscast color scheme (#1834)
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`

3 years agoAdd scrollbar color group (#1840)
Dmitry Maluka [Sun, 23 Aug 2020 19:45:43 +0000 (21:45 +0200)]
Add scrollbar color group (#1840)

Ref #1837

3 years agofix spelling (#1828)
Bartek Pacia [Mon, 17 Aug 2020 17:04:44 +0000 (19:04 +0200)]
fix spelling (#1828)

3 years agoHighlight static as keyword in Javascript files (#1824)
Ryan Westlund [Fri, 14 Aug 2020 20:56:55 +0000 (16:56 -0400)]
Highlight static as keyword in Javascript files (#1824)

3 years agoAvoid duplicate entries in history (#1822)
Dmitry Maluka [Thu, 13 Aug 2020 05:38:50 +0000 (07:38 +0200)]
Avoid duplicate entries in history (#1822)

3 years agoMerge
Zachary Yedidia [Wed, 12 Aug 2020 05:18:18 +0000 (01:18 -0400)]
Merge

3 years agoDon't auto-relocate mouse events
Zachary Yedidia [Wed, 12 Aug 2020 05:18:15 +0000 (01:18 -0400)]
Don't auto-relocate mouse events

3 years agoImprove showkey command
Zachary Yedidia [Wed, 12 Aug 2020 02:18:10 +0000 (22:18 -0400)]
Improve showkey command

3 years agoImprove Rust syntax highlighting (#1820)
Ryan Westlund [Wed, 12 Aug 2020 01:39:57 +0000 (21:39 -0400)]
Improve Rust syntax highlighting (#1820)

3 years agoEnable registering raw events
Zachary Yedidia [Tue, 11 Aug 2020 18:36:58 +0000 (14:36 -0400)]
Enable registering raw events

Fixes #1821

3 years agoDon't overwrite user bindings
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

3 years agoRef #1819
Zachary Yedidia [Tue, 11 Aug 2020 00:34:10 +0000 (20:34 -0400)]
Ref #1819

3 years agoFix JobSend stdin
Zachary Yedidia [Mon, 10 Aug 2020 16:24:29 +0000 (12:24 -0400)]
Fix JobSend stdin

3 years agoRecord events in cursor
Zachary Yedidia [Thu, 9 Jul 2020 17:25:24 +0000 (13:25 -0400)]
Record events in cursor

3 years agoAllow configuration for info/term bindings
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.

3 years agoSeparate bindings for buffers and command bar
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.

3 years agoPreliminary support for key sequences
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.

3 years agoBasic implementation of KeyTree
Zachary Yedidia [Mon, 29 Jun 2020 21:13:22 +0000 (17:13 -0400)]
Basic implementation of KeyTree

3 years agoImprove internal keyevent names
Zachary Yedidia [Mon, 29 Jun 2020 04:50:19 +0000 (00:50 -0400)]
Improve internal keyevent names

3 years agoImprove Zig syntax definitions (#1814)
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

3 years agoAllow Julia multiline strings and comments (#1813)
Jakob Nybo Nissen [Wed, 5 Aug 2020 23:38:29 +0000 (01:38 +0200)]
Allow Julia multiline strings and comments (#1813)

3 years agoInitialize t.release to true
Zachary Yedidia [Tue, 4 Aug 2020 22:41:14 +0000 (18:41 -0400)]
Initialize t.release to true

3 years agoFix non-working split resize with mouse drag (#1811)
Dmitry Maluka [Tue, 4 Aug 2020 22:37:19 +0000 (00:37 +0200)]
Fix non-working split resize with mouse drag (#1811)

Fix the 2nd part of #1773: resize via mouse drag doesn't work if the
split on the left contains other splits, i.e. is not a leaf node.

The problem is that only leaf nodes have unique id. For non-leaf nodes
ID() returns 0. So we shouldn't search the node by id.
So replace GetMouseSplitID() with GetMouseSplitNode().

3 years agoFix erased vertical dividing line (#1810)
Dmitry Maluka [Tue, 4 Aug 2020 22:33:16 +0000 (00:33 +0200)]
Fix erased vertical dividing line (#1810)

Fix the 1st part of #1773: the dividing line between vertical splits
is not displayed if the split on the left contains other splits, i.e.
is not a leaf node.

3 years agoSupport reproducible builds (#1802)
Morten Linderud [Sun, 2 Aug 2020 00:26:39 +0000 (02:26 +0200)]
Support reproducible builds (#1802)

* Makefile: Ensure we strip out embedded paths

To reproduce binaries undeterministic values needs to be removed. By
default Go embeds several module paths into the binaries, which prevents
people from reproducing said distributed binary.

The distributed binary from micro contains the full home path of the
current builder of the binary. -trimpath removes these paths from the
binary.

    $ strings micro | grep "/home/zyedidia" | wc -l
    868

This also helps other distributions providing reproducible versions of
micro down the line.

Signed-off-by: Morten Linderud <morten@linderud.pw>
* build-date: Ensure build time adheres to SOURCE_DATE_EPOCH

Embedding undeterministic values into binaries prevents reproduction of
the binaries. The reproducible builds projects defines
`SOURCE_DATE_EPOCH` to allow deterministic insertion of build times.

This patch ensures `build-date` checks the environment variable before
building with the local time.

    $ SOURCE_DATE_EPOCH=123123 go run tools/build-date.go
    January 02, 1970
    $ go run tools/build-date.go
    July 31, 2020

    $ make build-quick && ./micro --version
    [...]
    Compiled on July 31, 2020
    $ SOURCE_DATE_EPOCH=123123 make build-quick && ./micro --version
    [...]
    Compiled on January 02, 1970

https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: Morten Linderud <morten@linderud.pw>
3 years agoMerge
Zachary Yedidia [Sun, 2 Aug 2020 00:18:41 +0000 (20:18 -0400)]
Merge

3 years agoExit gracefully when SIGTERM is received
Zachary Yedidia [Sun, 2 Aug 2020 00:18:07 +0000 (20:18 -0400)]
Exit gracefully when SIGTERM is received

Ref #779

3 years agoSolus install instruction
Zachary Yedidia [Fri, 31 Jul 2020 01:53:30 +0000 (21:53 -0400)]
Solus install instruction

3 years agoCheck error in terminal emulator
Zachary Yedidia [Mon, 27 Jul 2020 21:43:55 +0000 (17:43 -0400)]
Check error in terminal emulator

3 years agoDon't update internal plugins
Zachary Yedidia [Wed, 22 Jul 2020 19:40:40 +0000 (15:40 -0400)]
Don't update internal plugins

Ref #1792

3 years agoAdd syntax support for Renpy (#1789)
Ryan Westlund [Wed, 22 Jul 2020 19:26:37 +0000 (15:26 -0400)]
Add syntax support for Renpy (#1789)

3 years agoTidy go mod
Zachary Yedidia [Wed, 22 Jul 2020 19:23:13 +0000 (15:23 -0400)]
Tidy go mod

3 years agoMerge
Zachary Yedidia [Sun, 19 Jul 2020 23:08:00 +0000 (19:08 -0400)]
Merge

3 years agoUpdate tcell
Zachary Yedidia [Sun, 19 Jul 2020 23:07:52 +0000 (19:07 -0400)]
Update tcell

3 years agoAdd comment support for OCaml (#1776)
Ryan Westlund [Wed, 15 Jul 2020 18:13:44 +0000 (14:13 -0400)]
Add comment support for OCaml (#1776)

3 years agoSupport for multiple modifiers in colorschemes (#1772)
franekjel [Tue, 14 Jul 2020 21:58:03 +0000 (23:58 +0200)]
Support for multiple modifiers in colorschemes (#1772)

* Support for multiple modifiers (eg. "bold italic")

* Test for multiple modifiers (bold + italic + underline)

3 years agoAdd flake8 linter, postinit and preinit
Zachary Yedidia [Mon, 13 Jul 2020 17:28:26 +0000 (13:28 -0400)]
Add flake8 linter, postinit and preinit

Closes #1768

3 years agoRead paste option in screen init
Zachary Yedidia [Fri, 10 Jul 2020 16:26:15 +0000 (12:26 -0400)]
Read paste option in screen init

Fixes #1767

3 years agoFix swift linting problem
Zachary Yedidia [Thu, 9 Jul 2020 22:08:14 +0000 (18:08 -0400)]
Fix swift linting problem

3 years agoUpdate linter to include eslint
Zachary Yedidia [Thu, 9 Jul 2020 22:04:40 +0000 (18:04 -0400)]
Update linter to include eslint

Ref #1766

3 years agoUpdate linter documentation
Zachary Yedidia [Thu, 9 Jul 2020 21:58:42 +0000 (17:58 -0400)]
Update linter documentation

Ref #1766

3 years agoName svg micro.svg in tarballs
Zachary Yedidia [Thu, 9 Jul 2020 17:29:48 +0000 (13:29 -0400)]
Name svg micro.svg in tarballs

Ref #1765

3 years agoAdd micro icon and desktop file to release zips
Zachary Yedidia [Thu, 9 Jul 2020 17:26:12 +0000 (13:26 -0400)]
Add micro icon and desktop file to release zips

Closes #1765

3 years agoHighlight multicharacter escape sequences in C and C++ string literals (#1761)
Ján Priner [Wed, 8 Jul 2020 04:17:48 +0000 (06:17 +0200)]
Highlight multicharacter escape sequences in C and C++ string literals (#1761)

3 years agoUpdate micro.desktop (#1759)
Ján Priner [Mon, 6 Jul 2020 21:55:13 +0000 (23:55 +0200)]
Update micro.desktop (#1759)

3 years agofix
Zachary Yedidia [Mon, 6 Jul 2020 17:32:41 +0000 (17:32 +0000)]
fix

3 years agoRename deb file in scripts
Zachary Yedidia [Mon, 6 Jul 2020 17:30:49 +0000 (17:30 +0000)]
Rename deb file in scripts

3 years agoImprove deb package
Zachary Yedidia [Mon, 6 Jul 2020 17:25:30 +0000 (17:25 +0000)]
Improve deb package

3 years agoChmod
Zachary Yedidia [Mon, 6 Jul 2020 03:21:13 +0000 (03:21 +0000)]
Chmod

3 years agoUpdate script
Zachary Yedidia [Mon, 6 Jul 2020 03:19:47 +0000 (03:19 +0000)]
Update script

3 years agoMerge
Zachary Yedidia [Mon, 6 Jul 2020 03:14:06 +0000 (03:14 +0000)]
Merge

3 years agoImprove packaging
Zachary Yedidia [Mon, 6 Jul 2020 03:13:02 +0000 (03:13 +0000)]
Improve packaging

Slight improvements to the man page, and the man page is now
provided in prebuilt binary tarballs. Also a .deb file is now
provided as an asset along with prebuilt binary tarballs.

3 years agoUpdate nightly release scripts
Zachary Yedidia [Sun, 5 Jul 2020 21:12:06 +0000 (17:12 -0400)]
Update nightly release scripts

3 years agoSlight performance improvement nightly
Zachary Yedidia [Sun, 5 Jul 2020 19:54:00 +0000 (15:54 -0400)]
Slight performance improvement

3 years agoImprove comment plugin
Zachary Yedidia [Sun, 5 Jul 2020 19:48:49 +0000 (15:48 -0400)]
Improve comment plugin

When commenting a selection, the plugin won't just toggle each
line individually but will only uncomment the block if it is all
comments.

The comment plugin also now takes into account any number of spaces
between the comment character and the text. For example '//comment' will
be uncommented properly, as well as '//      comment'.

Fixes #1758

3 years agoImprove multicursor clipboard
Zachary Yedidia [Sun, 5 Jul 2020 05:12:35 +0000 (01:12 -0400)]
Improve multicursor clipboard

Ref #1721

3 years agoAdd clipboard support for multicursors
Zachary Yedidia [Sun, 5 Jul 2020 01:26:36 +0000 (21:26 -0400)]
Add clipboard support for multicursors

Fixes #1721

3 years agoFix reading clipboard internally for OSC52
Zachary Yedidia [Sun, 5 Jul 2020 00:54:27 +0000 (20:54 -0400)]
Fix reading clipboard internally for OSC52

3 years agoDon't set fastdirty base if modified
Zachary Yedidia [Sun, 5 Jul 2020 00:09:44 +0000 (20:09 -0400)]
Don't set fastdirty base if modified

3 years agoUpdate runtime
Zachary Yedidia [Sun, 5 Jul 2020 00:06:37 +0000 (20:06 -0400)]
Update runtime

3 years agoMerge
Zachary Yedidia [Sun, 5 Jul 2020 00:01:02 +0000 (20:01 -0400)]
Merge

3 years agoAdd support for copy-paste via OSC 52
Zachary Yedidia [Sun, 5 Jul 2020 00:00:39 +0000 (20:00 -0400)]
Add support for copy-paste via OSC 52

Ref #1754

3 years agoFix README ToC link (#1757)
Jim Tittsler [Sat, 4 Jul 2020 23:47:10 +0000 (08:47 +0900)]
Fix README ToC link (#1757)

3 years agoFix escape not exiting prompt
Zachary Yedidia [Sat, 4 Jul 2020 02:12:58 +0000 (22:12 -0400)]
Fix escape not exiting prompt

3 years agoRebind escape to clear info and deselect
Zachary Yedidia [Sat, 4 Jul 2020 01:02:16 +0000 (21:02 -0400)]
Rebind escape to clear info and deselect

3 years agoUse tcell's CanDisplay instead of Go's IsPrint
Zachary Yedidia [Thu, 2 Jul 2020 21:57:50 +0000 (17:57 -0400)]
Use tcell's CanDisplay instead of Go's IsPrint

Fixes #1755

3 years agoImprove php string highlighting
Zachary Yedidia [Thu, 2 Jul 2020 03:38:47 +0000 (23:38 -0400)]
Improve php string highlighting

Fixes #1753

3 years agoUpdate clipboard verification
Zachary Yedidia [Wed, 1 Jul 2020 03:29:09 +0000 (23:29 -0400)]
Update clipboard verification

Ref #1752

3 years agoDrop unnecessary Ftoa and FtoaWithDigits function (#1751)
Utkarsh Gupta [Tue, 30 Jun 2020 17:19:27 +0000 (22:49 +0530)]
Drop unnecessary Ftoa and FtoaWithDigits function (#1751)

Fixes: #1749
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
3 years agoOnly lock event handling
Zachary Yedidia [Sun, 28 Jun 2020 20:34:01 +0000 (16:34 -0400)]
Only lock event handling

3 years agoAdd a lock for plugins to use if using async code
Zachary Yedidia [Sun, 28 Jun 2020 20:29:32 +0000 (16:29 -0400)]
Add a lock for plugins to use if using async code

Ref #1539

3 years agoFix path escaping on Windows
Zachary Yedidia [Sat, 27 Jun 2020 21:59:28 +0000 (17:59 -0400)]
Fix path escaping on Windows

Windows does not allow ':' in a path, but for some reason previous
versions still worked, except the file for storing buffer info
(which had a ':' in the name) was not viewable except by opening
it with micro.

Ref #1736

3 years agoMerge
Zachary Yedidia [Sat, 27 Jun 2020 21:55:39 +0000 (17:55 -0400)]
Merge

3 years agoClose file properly in clean and update makefile
Zachary Yedidia [Sat, 27 Jun 2020 21:55:01 +0000 (17:55 -0400)]
Close file properly in clean and update makefile

3 years agoImprove Haskell syntax highlighting (#1745)
Ryan Westlund [Fri, 26 Jun 2020 21:53:43 +0000 (17:53 -0400)]
Improve Haskell syntax highlighting (#1745)

3 years agoUpdate plugin documentation v2.0.6
Zachary Yedidia [Wed, 24 Jun 2020 21:24:45 +0000 (17:24 -0400)]
Update plugin documentation

3 years agoAdd more functions to customize status bar
Zachary Yedidia [Wed, 24 Jun 2020 21:19:42 +0000 (17:19 -0400)]
Add more functions to customize status bar

Adds `status.lines`, `status.vcol`, `status.bytes`, `status.size`,
and exposes some functions from go-humanize to plugins.

Ref #1727

3 years agoSupport month and day names in crontab syntax
Zachary Yedidia [Wed, 24 Jun 2020 20:33:22 +0000 (16:33 -0400)]
Support month and day names in crontab syntax

Ref #1739

3 years agoUse boundaries in cron syntax rules
Zachary Yedidia [Wed, 24 Jun 2020 20:00:56 +0000 (16:00 -0400)]
Use boundaries in cron syntax rules

Fixes #1739

3 years agoAdd Search function to BufPane
Zachary Yedidia [Tue, 23 Jun 2020 22:47:42 +0000 (18:47 -0400)]
Add Search function to BufPane

3 years agoUpdate readme
Zachary Yedidia [Tue, 23 Jun 2020 21:37:58 +0000 (17:37 -0400)]
Update readme

Ref #1741

3 years agoDon't delete user settings if a parse error occurs
Zachary Yedidia [Tue, 23 Jun 2020 21:29:20 +0000 (17:29 -0400)]
Don't delete user settings if a parse error occurs

3 years agoTreat CRLF as LF when inserting text
Zachary Yedidia [Tue, 23 Jun 2020 21:17:22 +0000 (17:17 -0400)]
Treat CRLF as LF when inserting text

In effect, pasting text with \r\n will remove the \r character and
delegate whether or not the file will be saved with CRLF or LF line
endings to the `fileformat` option.

Ref #1742

3 years agoFix backup call in test
Zachary Yedidia [Mon, 22 Jun 2020 22:20:01 +0000 (18:20 -0400)]
Fix backup call in test

3 years agoImprove backup system
Zachary Yedidia [Mon, 22 Jun 2020 21:54:56 +0000 (17:54 -0400)]
Improve backup system

This commit introduces several improvements to the backup system.

* Backups are made every 8 seconds for buffers that have been modified
  since the last backup.

* The `permbackup` option allows users to specify that backups should
  be kept permanently.

* `The backupdir` option allows users to store backups in a custom
   directory.

Fixes #1641
Fixes #1536
Ref #1539 (removes possibility of race condition for backups)

3 years agoDon't use make in travis script
Zachary Yedidia [Sun, 21 Jun 2020 00:39:20 +0000 (20:39 -0400)]
Don't use make in travis script

3 years agoUpgrade travis to go 1.13.x
Zachary Yedidia [Sun, 21 Jun 2020 00:29:58 +0000 (20:29 -0400)]
Upgrade travis to go 1.13.x

3 years agoUpgrade Travis Go to 1.12.x
Zachary Yedidia [Sun, 21 Jun 2020 00:22:31 +0000 (20:22 -0400)]
Upgrade Travis Go to 1.12.x

Fixes Travis Windows build problem because go modules are enabled
by default in 1.12.x and don't need an environment variable to be
set.

3 years agoInclude windows for travis
Zachary Yedidia [Sun, 21 Jun 2020 00:12:15 +0000 (20:12 -0400)]
Include windows for travis

3 years agoPersist plugin options correctly
Zachary Yedidia [Sun, 21 Jun 2020 00:07:33 +0000 (20:07 -0400)]
Persist plugin options correctly