]> git.lizzy.rs Git - micro.git/log
micro.git
5 years agoUpdate nightly release script to not duplicate nightlies v1.4.1
Zachary Yedidia [Fri, 20 Jul 2018 00:24:02 +0000 (00:24 +0000)]
Update nightly release script to not duplicate nightlies

5 years agoUpdate ats syntax (#1141)
djmnzp [Mon, 16 Jul 2018 19:37:57 +0000 (21:37 +0200)]
Update ats syntax (#1141)

* Multiple changes
 - Fixed overlapping between the macros and some statements.
 - Added "t" and "abs" as types.
 - Removed "fun0", "fun1", "clo0", "clo1", ..., "prf" from types and added them to the special block as effects.
 - Added "lin", "lincloptr0" and "lincloptr1" as effects.
 - Added "do" and "static" as statements.
 - Added "tupz!" and "prerr!" to the special block.
 - Fixed some typos.

* Updated regex for exhaustive types

* Final touches

* Removed "t" from types

* Minor fix

* Improved support for floats and integers
Make it comply with https://github.com/Hibou57/PostiATS-Utilities/blob/master/doc/lexemes-guide.md

* Chars are now interpreted as strings
Less troubling when working with '"' inside chars or multiline strings

* Reverted strings and chars from multiline to one line
For some reason, having strings on the same line as other symbols breaks the highlighting on the latter

* Add "ldouble" type

5 years agoUpdate runtime and auto-gofmt runtime in make
Zachary Yedidia [Mon, 2 Jul 2018 16:22:32 +0000 (12:22 -0400)]
Update runtime and auto-gofmt runtime in make

5 years agoMerge pull request #1135 from whilei/gofmt-2018-Jun-17-00-39
Zachary Yedidia [Mon, 2 Jul 2018 16:22:05 +0000 (12:22 -0400)]
Merge pull request #1135 from whilei/gofmt-2018-Jun-17-00-39

gofmt

5 years agoAdded syntax highlighting for ATS (#1137)
djmnzp [Mon, 2 Jul 2018 16:19:38 +0000 (18:19 +0200)]
Added syntax highlighting for ATS (#1137)

* Added syntax highlighting for ATS

* Fixed "////" comment not working as intended
Added a hack to make it impossible to match the end of the comment

* Fixed typo, added '#' and '@' as symbols

5 years agoall: gofmt
ia [Sat, 16 Jun 2018 22:41:57 +0000 (00:41 +0200)]
all: gofmt

Run standard gofmt command on project root.

- go version go1.10.3 darwin/amd64

Signed-off-by: ia <isaac.ardis@gmail.com>
5 years agoFix php syntax file
Zachary Yedidia [Mon, 4 Jun 2018 19:13:58 +0000 (15:13 -0400)]
Fix php syntax file

Fixes #1109

5 years agoFix -startpos flag being ignored (#1129)
Dimitar Borislavov Tasev [Mon, 4 Jun 2018 16:27:27 +0000 (17:27 +0100)]
Fix -startpos flag being ignored (#1129)

* Refactored cursor location login into a function. Fixed buffer overflow when line position is 1 more than file lines

* Fixed crash when -startpos has an invalid argument

* Adapted tests to new interface

* Fixed bug where -startpos with lines 0 and 1 would both be on the first line

* Changed Fatalf format back to digits

* Fixed issues with buffer cursor location. Added tests for new function

* ParseCursorLocation will now return an error when path doesnt contain line/col

* Fixed off-by-one line error

* Fixed tests to account for subtracting 1 from the line index

5 years agoMerge pull request #1125 from nabeelomer/master
Zachary Yedidia [Sun, 3 Jun 2018 21:13:22 +0000 (17:13 -0400)]
Merge pull request #1125 from nabeelomer/master

F# Configuration

5 years agoAllows opening files using full path on Windows (#1126)
Dimitar Borislavov Tasev [Sun, 3 Jun 2018 21:13:03 +0000 (22:13 +0100)]
Allows opening files using full path on Windows (#1126)

* Now can open Windows full-path from command line arg

Example that now works: micro.exe D:\myfile.txt

* Now correctly retrieves the path from the input path string. Except for single-letter filenames

* Fixed line/cols, need to make the code prettier

* Fixed path matching with regex by @Pariador

* Fixed not stripping the line/col args from file path

* Added tests for ParseCursorLocation

5 years agoF# Configuration
Nabeel Omer [Tue, 29 May 2018 14:32:58 +0000 (20:02 +0530)]
F# Configuration

5 years agoElixir configuration (#1118)
Sean Charles [Sat, 26 May 2018 14:08:35 +0000 (15:08 +0100)]
Elixir configuration (#1118)

* Elixir configuration

* added exunit support

* end added

5 years agoMerge pull request #1119 from mbesancon/patch-3
Zachary Yedidia [Sat, 26 May 2018 14:08:19 +0000 (10:08 -0400)]
Merge pull request #1119 from mbesancon/patch-3

Update julia.yaml

5 years agoCode optimisation (#1117)
Maxim [Sat, 26 May 2018 14:07:53 +0000 (15:07 +0100)]
Code optimisation (#1117)

* Making sure output files are always closed, plus hash calculation optimisation.

* Parallel hash calculation.

* Minor changes.

* Removed unnecessary memory allocations while trimming trailing whitespace.

* Buffered write.

5 years agoUpdate julia.yaml
mbesancon [Fri, 25 May 2018 16:04:12 +0000 (12:04 -0400)]
Update julia.yaml

added struct to keywords

6 years agoa few miscellaneous fixes and improvements (#1105)
JT Olio [Sun, 13 May 2018 01:31:57 +0000 (19:31 -0600)]
a few miscellaneous fixes and improvements (#1105)

* add binding for more primitive backspace

* support selecting page up and page down

* fix matchbraceleft for braces that start on x=0

* fix multiline copy-paste indenting

let's say you have two lines like

  <space><space>line1
  <space><space>line2

so you start from cursor x=0 and select both lines, then paste.
we don't want any leading whitespace in this case, because the
cursor is already at x=0 and the selection already includes
whitespace.

6 years agoFix ini comment highlighting
Zachary Yedidia [Sun, 13 May 2018 01:29:02 +0000 (21:29 -0400)]
Fix ini comment highlighting

Fixes #1094

6 years agoFix matchbraceleft option
Zachary Yedidia [Sat, 28 Apr 2018 21:42:17 +0000 (17:42 -0400)]
Fix matchbraceleft option

Fixes #1101

6 years agoFix possible crash in findkey
Zachary Yedidia [Sat, 28 Apr 2018 21:16:22 +0000 (17:16 -0400)]
Fix possible crash in findkey

Fixes #1103

6 years agoMerge
Zachary Yedidia [Sat, 28 Apr 2018 21:04:47 +0000 (17:04 -0400)]
Merge

6 years agoAdd hidehelp option
Zachary Yedidia [Sat, 28 Apr 2018 21:04:33 +0000 (17:04 -0400)]
Add hidehelp option

Fixes #1080

6 years agoMake ^X act like ^K when nothing is selected (#1092)
Mark Weston [Mon, 23 Apr 2018 19:34:45 +0000 (22:34 +0300)]
Make ^X act like ^K when nothing is selected (#1092)

* Make ^X act like ^K when nothing is selected

^K is hard to reach with your left hand or requires to use both hands
Also with this you could remove ^K whatsoever and make room for a different command
This is how I configured nano by the way
Line duplication also becomes nearly instantaneous with a flash-quick ^X+^V+^V combo (nano doesn't have a dedicated shortcut)
Small block (5-10 lines) cuts/copies/duplicates can also be made this way

* Remove unnecessary lines

* Call CutLine the right way

6 years agoMerge pull request #1085 from jtolds/themes
Zachary Yedidia [Sat, 21 Apr 2018 20:57:53 +0000 (16:57 -0400)]
Merge pull request #1085 from jtolds/themes

darcula: fix highlighted line and color column

6 years agoMerge pull request #1084 from jtolds/master
Zachary Yedidia [Sun, 8 Apr 2018 00:03:57 +0000 (20:03 -0400)]
Merge pull request #1084 from jtolds/master

home toggles between start of line and start of text

6 years agodarcula: fix highlighted line and color column
JT Olio [Fri, 6 Apr 2018 01:45:11 +0000 (19:45 -0600)]
darcula: fix highlighted line and color column

6 years agohome toggles between start of line and start of text
JT Olio [Thu, 5 Apr 2018 21:25:30 +0000 (15:25 -0600)]
home toggles between start of line and start of text

by default home sends the cursor to the beginning of the line.
if the cursor is at the beginning of the line already though, home
will send the cursor to the first non-whitespace rune. tapping home
will toggle between these two line starts.

6 years agoBuild snap using up-to-date golang
Zachary Yedidia [Tue, 3 Apr 2018 04:53:24 +0000 (00:53 -0400)]
Build snap using up-to-date golang

6 years agoUpdate snapcraft.yaml Go plugin
Zachary Yedidia [Tue, 3 Apr 2018 04:16:19 +0000 (21:16 -0700)]
Update snapcraft.yaml Go plugin

6 years agoUpdate snapcraft.yaml
Zachary Yedidia [Tue, 3 Apr 2018 04:07:12 +0000 (21:07 -0700)]
Update snapcraft.yaml

6 years agofix typo
Zachary Yedidia [Sat, 31 Mar 2018 02:32:48 +0000 (02:32 +0000)]
fix typo

6 years agoAdd docs for SpawnMultiCursorSelect
Zachary Yedidia [Fri, 30 Mar 2018 20:42:28 +0000 (16:42 -0400)]
Add docs for SpawnMultiCursorSelect

6 years agoImplement SpawnMultiCursorSelect (#1046)
dwwmmn [Fri, 30 Mar 2018 20:40:45 +0000 (16:40 -0400)]
Implement SpawnMultiCursorSelect (#1046)

Add function to actions.go which adds a new cursor to the beginning of each line of a selection. Bind to Ctrl-M by default.

6 years agoFix ReplaceHome implementation
Zachary Yedidia [Fri, 30 Mar 2018 20:21:39 +0000 (16:21 -0400)]
Fix ReplaceHome implementation

6 years agoAdd support for ~username syntax (fix #1033) (#1035)
DanielPower [Fri, 30 Mar 2018 20:20:51 +0000 (17:50 -0230)]
Add support for ~username syntax (fix #1033) (#1035)

* Add support for ~username syntax (fix #1033)

* Fixed return string

Also removed non-descriptive variable name `foo`

* moved err declarations outside of if statement

6 years agoMerge
Zachary Yedidia [Fri, 30 Mar 2018 19:59:45 +0000 (15:59 -0400)]
Merge

6 years agoClose fd properly in save
Zachary Yedidia [Fri, 30 Mar 2018 19:59:26 +0000 (15:59 -0400)]
Close fd properly in save

Fixes #1057

6 years agoMerge pull request #1076 from Velocet/patch-1
Zachary Yedidia [Wed, 21 Mar 2018 03:22:51 +0000 (23:22 -0400)]
Merge pull request #1076 from Velocet/patch-1

Create PowerShell.yaml - PowerShell Syntax Highlighting

6 years agoCreate PowerShell.yaml
Velocet [Wed, 21 Mar 2018 02:58:04 +0000 (03:58 +0100)]
Create PowerShell.yaml

6 years agoMerge pull request #1054 from jtolds/master
Zachary Yedidia [Mon, 19 Mar 2018 04:32:26 +0000 (00:32 -0400)]
Merge pull request #1054 from jtolds/master

allow optional brace matching with the closing brace to the left of the cursor

6 years agoMerge pull request #1067 from sum01/issue-1066
Zachary Yedidia [Mon, 19 Mar 2018 04:32:07 +0000 (00:32 -0400)]
Merge pull request #1067 from sum01/issue-1066

Fix #1066 php syntax

6 years agoFix test string formatting
Zachary Yedidia [Fri, 9 Mar 2018 05:39:59 +0000 (00:39 -0500)]
Fix test string formatting

Fixes #1068

6 years agoUpdate fastdirty hash during save
Zachary Yedidia [Thu, 8 Mar 2018 20:07:14 +0000 (15:07 -0500)]
Update fastdirty hash during save

Fixes #1064

6 years agoFix #1066 php syntax
sum01 [Thu, 8 Mar 2018 16:28:38 +0000 (11:28 -0500)]
Fix #1066 php syntax

6 years agoMerge pull request #1045 from emilyaviva/master
Zachary Yedidia [Sat, 3 Mar 2018 01:12:46 +0000 (20:12 -0500)]
Merge pull request #1045 from emilyaviva/master

Organize colorscheme setting documentation

6 years agoMerge pull request #1050 from mathieu-aubin/master
Zachary Yedidia [Sat, 3 Mar 2018 01:11:50 +0000 (20:11 -0500)]
Merge pull request #1050 from mathieu-aubin/master

raster compression

6 years agoMake tab views array public
Zachary Yedidia [Sat, 3 Mar 2018 00:50:33 +0000 (19:50 -0500)]
Make tab views array public

Ref #1024

6 years agoCount replacements in replaceall correctly
Zachary Yedidia [Sat, 3 Mar 2018 00:32:23 +0000 (19:32 -0500)]
Count replacements in replaceall correctly

Fixes #1055

6 years agoallow optionally brace matching with the closing brace to the left of the cursor
JT Olds [Wed, 28 Feb 2018 01:53:04 +0000 (18:53 -0700)]
allow optionally brace matching with the closing brace to the left of the cursor

this behavior, while slightly less obvious, allows for observing what brace you
just closed. as you write closing braces, the brace you closed gets highlighted

6 years agoraster compression
Mathieu [Fri, 23 Feb 2018 18:30:28 +0000 (19:30 +0100)]
raster compression

6 years agoMove setting instructions to top; add some minor organization
Emily Aviva Kapor-Mater [Tue, 20 Feb 2018 20:11:31 +0000 (12:11 -0800)]
Move setting instructions to top; add some minor organization

6 years agoUse regexp replaceall
Zachary Yedidia [Mon, 19 Feb 2018 22:04:09 +0000 (17:04 -0500)]
Use regexp replaceall

Fixes #1038

6 years agoFix SaveAs Lua callback
Zachary Yedidia [Mon, 12 Feb 2018 05:06:31 +0000 (00:06 -0500)]
Fix SaveAs Lua callback

Fixes #1029

6 years agoMerge pull request #1028 from filalex77/patch-1
Zachary Yedidia [Fri, 9 Feb 2018 16:07:14 +0000 (11:07 -0500)]
Merge pull request #1028 from filalex77/patch-1

Fix relative URL for terminfo

6 years agoFix relative URL for terminfo
Oleksii Filonenko [Fri, 9 Feb 2018 15:36:12 +0000 (17:36 +0200)]
Fix relative URL for terminfo

6 years agoMerge
Zachary Yedidia [Thu, 8 Feb 2018 19:18:04 +0000 (14:18 -0500)]
Merge

6 years agoUpdate clipboard
Zachary Yedidia [Thu, 8 Feb 2018 19:17:58 +0000 (14:17 -0500)]
Update clipboard

6 years agoMerge pull request #1026 from mbesancon/patch-2
Zachary Yedidia [Thu, 8 Feb 2018 00:43:28 +0000 (19:43 -0500)]
Merge pull request #1026 from mbesancon/patch-2

Update julia.yaml

6 years agoUpdate julia.yaml
mbesancon [Wed, 7 Feb 2018 22:43:43 +0000 (17:43 -0500)]
Update julia.yaml

added "import" keyword

6 years agoFix resize when prompt is active
Zachary Yedidia [Mon, 5 Feb 2018 03:58:20 +0000 (22:58 -0500)]
Fix resize when prompt is active

Fixes #1020

6 years agoUpdate licenses
Zachary Yedidia [Sun, 4 Feb 2018 19:04:42 +0000 (14:04 -0500)]
Update licenses

6 years agoUpdate license info
Zachary Yedidia [Sun, 4 Feb 2018 16:33:03 +0000 (11:33 -0500)]
Update license info

6 years agoAdd goconvey dependency to vendor
Zachary Yedidia [Sun, 4 Feb 2018 03:33:32 +0000 (22:33 -0500)]
Add goconvey dependency to vendor

Ref #1

6 years agoSupport nano syntax for open at line
Zachary Yedidia [Fri, 2 Feb 2018 21:53:08 +0000 (16:53 -0500)]
Support nano syntax for open at line

Ref #887

6 years agoOpen at line syntax with filename:line:col
Zachary Yedidia [Fri, 2 Feb 2018 18:57:02 +0000 (13:57 -0500)]
Open at line syntax with filename:line:col

Ref #1010
Ref #887
Ref #836

6 years agoUse current view for every action
Zachary Yedidia [Fri, 2 Feb 2018 17:33:13 +0000 (12:33 -0500)]
Use current view for every action

Fixes #1015

6 years agoFix minor issue with autoscroll
Zachary Yedidia [Fri, 2 Feb 2018 01:20:57 +0000 (20:20 -0500)]
Fix minor issue with autoscroll

Fixes #1012

6 years agoImprove ocaml syntax highlighting
Zachary Yedidia [Wed, 31 Jan 2018 03:34:44 +0000 (22:34 -0500)]
Improve ocaml syntax highlighting

6 years agoExit with error on screen initialization
Zachary Yedidia [Tue, 30 Jan 2018 18:04:26 +0000 (13:04 -0500)]
Exit with error on screen initialization

6 years agoFix bad import path
Zachary Yedidia [Tue, 30 Jan 2018 04:42:45 +0000 (23:42 -0500)]
Fix bad import path

6 years agoUpdate to use new mkinfo from tcell
Zachary Yedidia [Tue, 30 Jan 2018 04:36:39 +0000 (23:36 -0500)]
Update to use new mkinfo from tcell

This update incorporates the new terminfo updates in tcell into micro
essentially merging zyedidia/mkinfo into micro. The zyedidia/mkinfo
program should no longer be necessary and micro should automatically
generate a tcell database on its own if it cannot find a terminal
entry. The tcell database will be located in `configDir/.tcelldb`.

Ref #20
Ref #922

6 years agoImprove man page
Zachary Yedidia [Tue, 30 Jan 2018 01:36:18 +0000 (20:36 -0500)]
Improve man page

6 years agoUpdate tex syntax file
Zachary Yedidia [Mon, 29 Jan 2018 23:02:43 +0000 (18:02 -0500)]
Update tex syntax file

6 years agoOptimization to lots of redraws on large files
Zachary Yedidia [Mon, 29 Jan 2018 21:47:55 +0000 (16:47 -0500)]
Optimization to lots of redraws on large files

6 years agoMinor optimizations
Zachary Yedidia [Mon, 29 Jan 2018 21:02:15 +0000 (16:02 -0500)]
Minor optimizations

6 years agoLarge syntax highlighting memory optimization
Zachary Yedidia [Mon, 29 Jan 2018 20:21:00 +0000 (15:21 -0500)]
Large syntax highlighting memory optimization

Ref #634

6 years agoFix syntax highlighting on empty buffer
Zachary Yedidia [Mon, 29 Jan 2018 03:35:43 +0000 (22:35 -0500)]
Fix syntax highlighting on empty buffer

6 years agoSmall simplification
Zachary Yedidia [Sun, 28 Jan 2018 20:15:23 +0000 (15:15 -0500)]
Small simplification

6 years agoFix terminal emulator support v1.4.0
Zachary Yedidia [Fri, 26 Jan 2018 01:10:49 +0000 (20:10 -0500)]
Fix terminal emulator support

6 years agoUpdate tcell
Zachary Yedidia [Wed, 24 Jan 2018 21:11:48 +0000 (16:11 -0500)]
Update tcell

6 years agoUpdate tcell
Zachary Yedidia [Tue, 23 Jan 2018 04:40:42 +0000 (23:40 -0500)]
Update tcell

6 years agoAdd new shell command documentation
Zachary Yedidia [Tue, 23 Jan 2018 02:03:52 +0000 (21:03 -0500)]
Add new shell command documentation

Ref #979

6 years agoFix compile error
Zachary Yedidia [Mon, 22 Jan 2018 22:32:30 +0000 (17:32 -0500)]
Fix compile error

6 years agoImprove shell commands
Zachary Yedidia [Mon, 22 Jan 2018 22:20:03 +0000 (17:20 -0500)]
Improve shell commands

6 years agoMake onViewOpen and onBufferOpen the same
Zachary Yedidia [Mon, 22 Jan 2018 20:27:56 +0000 (15:27 -0500)]
Make onViewOpen and onBufferOpen the same

Ref #948

6 years agoDon't throw error if job callback doesn't exist
Zachary Yedidia [Sun, 21 Jan 2018 21:31:13 +0000 (16:31 -0500)]
Don't throw error if job callback doesn't exist

Closes #953

6 years agoExpose emulator functions and support output
Zachary Yedidia [Sun, 21 Jan 2018 04:34:16 +0000 (23:34 -0500)]
Expose emulator functions and support output

Ref #979

6 years agoUse zyedidia/pty instead of kr/pty
Zachary Yedidia [Sun, 21 Jan 2018 03:28:17 +0000 (22:28 -0500)]
Use zyedidia/pty instead of kr/pty

6 years agoChange HandleShellCommand backend
Zachary Yedidia [Sun, 21 Jan 2018 03:23:52 +0000 (22:23 -0500)]
Change HandleShellCommand backend

I'm trying to add more options for plugins that want to run shell
commands. Also trying to add support for running shell commands in the
terminal emulator from a plugin and return the output.

More to come soon.

Ref #979

6 years agoImprove unicode softwrap drawing
Zachary Yedidia [Sat, 20 Jan 2018 17:36:22 +0000 (12:36 -0500)]
Improve unicode softwrap drawing

Ref #1002
Ref #909

6 years agoMerge
Zachary Yedidia [Fri, 19 Jan 2018 05:28:58 +0000 (00:28 -0500)]
Merge

6 years agoClean up terminal emulator a bit
Zachary Yedidia [Fri, 19 Jan 2018 05:28:51 +0000 (00:28 -0500)]
Clean up terminal emulator a bit

6 years agoMerge pull request #999 from sum01/create_parents
Zachary Yedidia [Thu, 18 Jan 2018 05:49:45 +0000 (00:49 -0500)]
Merge pull request #999 from sum01/create_parents

Create parent folders (if none) when saving

6 years agoMerge pull request #1001 from sum01/makefile_syntax
Zachary Yedidia [Thu, 18 Jan 2018 04:59:36 +0000 (23:59 -0500)]
Merge pull request #1001 from sum01/makefile_syntax

Fix Makefile equals highlighting

6 years agoFix Makefile = highlighting
sum01 [Thu, 18 Jan 2018 04:44:53 +0000 (23:44 -0500)]
Fix Makefile = highlighting
I think they weren't being highlighted at all, leading to a weird looking default white box around them.

6 years agoPrompt to create parent folders (if none) when saving
sum01 [Wed, 17 Jan 2018 02:54:13 +0000 (21:54 -0500)]
Prompt to create parent folders (if none) when saving
Fixes #995

6 years agoSupport line:col in JumpLine
Zachary Yedidia [Thu, 18 Jan 2018 00:09:50 +0000 (19:09 -0500)]
Support line:col in JumpLine

Closes #1000

6 years agoFix minor autoindent issue
Zachary Yedidia [Wed, 17 Jan 2018 22:37:17 +0000 (17:37 -0500)]
Fix minor autoindent issue

Fixes #985

6 years agoMerge pull request #998 from JoshuaRLi/select-line-action
Zachary Yedidia [Wed, 17 Jan 2018 22:25:37 +0000 (17:25 -0500)]
Merge pull request #998 from JoshuaRLi/select-line-action

Implemented SelectLine as an Action

6 years agoFix shebang js highlighting and js division
Zachary Yedidia [Wed, 17 Jan 2018 22:19:03 +0000 (17:19 -0500)]
Fix shebang js highlighting and js division

Closes #901
Closes #994

6 years agoimplemented select line as an Action
Joshua Li [Tue, 16 Jan 2018 22:27:15 +0000 (17:27 -0500)]
implemented select line as an Action