]> git.lizzy.rs Git - micro.git/log
micro.git
7 years agoChange default colorscheme to monokai
Zachary Yedidia [Tue, 5 Jul 2016 22:34:51 +0000 (18:34 -0400)]
Change default colorscheme to monokai

The monokai-tc colorscheme has been renamed to plain monokai and has
been made the default colorscheme. It is still a true color colorscheme,
but the automatic 256 color approximation is very good so it can be used
just fine in terminals which do not support true color.

If your terminal only supports 16 colors, used the 'default'
colorscheme.

8 years agoMerge pull request #189 from onodera-punpun/sudosave
Zachary Yedidia [Thu, 30 Jun 2016 15:08:12 +0000 (11:08 -0400)]
Merge pull request #189 from onodera-punpun/sudosave

bindings:go: Only display saved message if actually saved

8 years agobindings:go: Only display saved message if actually saved
Camille Scholtz [Thu, 30 Jun 2016 14:49:32 +0000 (16:49 +0200)]
bindings:go: Only display saved message if actually saved

8 years agoWrap around when using NextTab and PreviousTab
Zachary Yedidia [Wed, 29 Jun 2016 01:29:46 +0000 (21:29 -0400)]
Wrap around when using NextTab and PreviousTab

Fixes #188

8 years agoFix JumpLine range
Zachary Yedidia [Wed, 29 Jun 2016 01:26:19 +0000 (21:26 -0400)]
Fix JumpLine range

Fixes #187

8 years agoFix replace cursor relocation
Zachary Yedidia [Tue, 28 Jun 2016 19:06:42 +0000 (15:06 -0400)]
Fix replace cursor relocation

8 years agoMerge pull request #186 from onodera-punpun/replaced
Zachary Yedidia [Tue, 28 Jun 2016 19:03:59 +0000 (15:03 -0400)]
Merge pull request #186 from onodera-punpun/replaced

command.go: Add some feedback to replace

8 years agocommand.go: Simplify and prettify replace feedback
Camille Scholtz [Tue, 28 Jun 2016 17:55:29 +0000 (19:55 +0200)]
command.go: Simplify and prettify replace feedback

8 years agocommand.go: Add some feedback to replace
Camille Scholtz [Tue, 28 Jun 2016 17:49:26 +0000 (19:49 +0200)]
command.go: Add some feedback to replace

8 years agoAdd string group to syntax files
Zachary Yedidia [Sat, 25 Jun 2016 23:20:13 +0000 (19:20 -0400)]
Add string group to syntax files

This commit adds the string group (constant.string) to valid strings
in all the syntax files that support colorschemes (see the readme in
the runtime/syntax directory).

Fixes #178

8 years agoAdd feedback to save with sudo
Zachary Yedidia [Sat, 25 Jun 2016 17:42:21 +0000 (13:42 -0400)]
Add feedback to save with sudo

Fixes #183

8 years agoAdd new colorschemes to runtime
Zachary Yedidia [Thu, 23 Jun 2016 12:39:26 +0000 (08:39 -0400)]
Add new colorschemes to runtime

8 years agoMerge pull request #180 from Calinou/monokai-colorscheme
Zachary Yedidia [Thu, 23 Jun 2016 12:29:24 +0000 (08:29 -0400)]
Merge pull request #180 from Calinou/monokai-colorscheme

Add a Monokai colorscheme

8 years agoMerge pull request #181 from Calinou/atom-dark-colorscheme
Zachary Yedidia [Thu, 23 Jun 2016 12:25:23 +0000 (08:25 -0400)]
Merge pull request #181 from Calinou/atom-dark-colorscheme

Add Atom Dark colorscheme

8 years agoMerge pull request #182 from Calinou/gdscript-syntax
Zachary Yedidia [Thu, 23 Jun 2016 12:25:11 +0000 (08:25 -0400)]
Merge pull request #182 from Calinou/gdscript-syntax

Add GDScript syntax file

8 years agoAdd GDScript syntax file
Hugo Locurcio [Thu, 23 Jun 2016 10:06:06 +0000 (12:06 +0200)]
Add GDScript syntax file

8 years agoAdd Atom Dark colorscheme
Hugo Locurcio [Thu, 23 Jun 2016 09:36:35 +0000 (11:36 +0200)]
Add Atom Dark colorscheme

8 years agoAdd a Monokai colorscheme
Hugo Locurcio [Thu, 23 Jun 2016 08:01:48 +0000 (10:01 +0200)]
Add a Monokai colorscheme

8 years agoFix issue with autoclose plugin
Zachary Yedidia [Thu, 23 Jun 2016 01:03:40 +0000 (21:03 -0400)]
Fix issue with autoclose plugin

8 years agoColorscheme group inheritance
Zachary Yedidia [Wed, 22 Jun 2016 22:51:36 +0000 (18:51 -0400)]
Colorscheme group inheritance

With this commit, the syntax files can define groups that are subsets of
other groups, for example constant.string. This is so that colorschemes
can be more accurate, possibly highlighting strings differently than
numbers for example.

See #176. This doesn't fully close that issue yet because the string
group still needs to be added to all strings in the syntax files.

8 years agoUpdate README.md
Zachary Yedidia [Wed, 22 Jun 2016 17:59:07 +0000 (13:59 -0400)]
Update README.md

8 years agoUpdate README.md
Zachary Yedidia [Wed, 22 Jun 2016 17:58:07 +0000 (13:58 -0400)]
Update README.md

8 years agoAdd autoclose plugin to handle autoclose for brackets, quotes etc...
Zachary Yedidia [Wed, 22 Jun 2016 17:54:42 +0000 (13:54 -0400)]
Add autoclose plugin to handle autoclose for brackets, quotes etc...

The plugin adds an option `autoclose` to configure whether or not you
would like quotes, brackets etc... to be automatically closed. The
option is enabled by default.

Closes #176

8 years agoAdd onRune(r string) callback for plugins
Zachary Yedidia [Tue, 21 Jun 2016 21:57:25 +0000 (17:57 -0400)]
Add onRune(r string) callback for plugins

Define this function in a plugin (which takes one argument) to be
notified whenever a character is typed, and the character will be passed
as the argument.

8 years agoOnly copy messages if there is a mouse left click (not any mouse event)
Zachary Yedidia [Tue, 21 Jun 2016 21:54:36 +0000 (17:54 -0400)]
Only copy messages if there is a mouse left click (not any mouse event)

8 years agoAuto prefix for plugin functions
Zachary Yedidia [Tue, 21 Jun 2016 21:49:57 +0000 (17:49 -0400)]
Auto prefix for plugin functions

YOu no longer have to prefix all functions in a plugin with the plugin
name (linter_onSave). This will now be done automatically using lua's
setfenv. When passing a function as a callback to a editor function,
make sure to prefix the plugin name (linter.onExit, or go.goimports) so
that micro knows which plugin to call the function from.

8 years agoFix mouse controls
Zachary Yedidia [Sun, 19 Jun 2016 13:02:47 +0000 (09:02 -0400)]
Fix mouse controls

Fixes #173

8 years agoClicking on messages will copy them to the clipboard
Zachary Yedidia [Fri, 17 Jun 2016 15:24:54 +0000 (11:24 -0400)]
Clicking on messages will copy them to the clipboard

Fixes #172

8 years agoAdd support for job control
Zachary Yedidia [Wed, 15 Jun 2016 15:19:00 +0000 (11:19 -0400)]
Add support for job control

This commit adds support for job control (running processes
asynchronously from plugins) with the JobStart, JobSend, and JobStop
functions (copying neovim's job control).

This commit also makes the linter plugin work asynchronously, so the
editor won't be frozen while the linter checks your code for errors.

8 years agoUpdate windows binary name to .zip
Zachary Yedidia [Sun, 12 Jun 2016 15:35:12 +0000 (11:35 -0400)]
Update windows binary name to .zip

8 years agoUpdate readme
Zachary Yedidia [Sun, 12 Jun 2016 15:24:09 +0000 (11:24 -0400)]
Update readme

8 years agoAdd nightly release script
Zachary Yedidia [Sun, 12 Jun 2016 15:05:19 +0000 (11:05 -0400)]
Add nightly release script

8 years agoAlso allow ModShift to be on for windows terminals
Zachary Yedidia [Sat, 11 Jun 2016 23:41:37 +0000 (19:41 -0400)]
Also allow ModShift to be on for windows terminals

Fixes #165

8 years agoFix diff remove problem in ApplyDiff
Zachary Yedidia [Sat, 11 Jun 2016 15:23:05 +0000 (11:23 -0400)]
Fix diff remove problem in ApplyDiff

The location counter was being updated when there was a removal in
the text but it shouldn't be.

Fixes #163

8 years agoFix cursor line in true color colorschemes
Zachary Yedidia [Thu, 9 Jun 2016 20:00:43 +0000 (16:00 -0400)]
Fix cursor line in true color colorschemes

Ref #171

8 years agoFix autocompletion using a slash
Zachary Yedidia [Thu, 9 Jun 2016 17:36:16 +0000 (13:36 -0400)]
Fix autocompletion using a slash

8 years agoAdd file completion to OpenFile (CtrlO) with tab
Zachary Yedidia [Thu, 9 Jun 2016 14:03:50 +0000 (10:03 -0400)]
Add file completion to OpenFile (CtrlO) with tab

8 years agoFix mouse coordinates when tabbar is open
Zachary Yedidia [Thu, 9 Jun 2016 13:29:23 +0000 (09:29 -0400)]
Fix mouse coordinates when tabbar is open

Fixes #170

8 years agoFix tabbar bug
Zachary Yedidia [Thu, 9 Jun 2016 01:07:40 +0000 (21:07 -0400)]
Fix tabbar bug

Fixes #169

8 years agoFix resizing of tabs opened with the command line
Zachary Yedidia [Wed, 8 Jun 2016 23:43:05 +0000 (19:43 -0400)]
Fix resizing of tabs opened with the command line

8 years agoAdd support for tabs
Zachary Yedidia [Wed, 8 Jun 2016 22:49:08 +0000 (18:49 -0400)]
Add support for tabs

Merge branch 'tabbar'

This branch adds support for having multiple tabs open, each viewing one
file. Use CtrlT to open a new tab empty tab and then CtrlO to open a
file in that tab. Use can also just open multiple files from the command
line: `micro file1.txt file2.txt ...`. Use Ctrl-] and Ctrl-\ to move
between the tabs, or simply click them with the mouse.

8 years agoAdd default bindings for PreviousTab and NextTab
Zachary Yedidia [Wed, 8 Jun 2016 22:48:59 +0000 (18:48 -0400)]
Add default bindings for PreviousTab and NextTab

8 years agoMake tabs respond to mouse events
Zachary Yedidia [Wed, 8 Jun 2016 21:47:48 +0000 (17:47 -0400)]
Make tabs respond to mouse events

8 years agoResize the view correctly when there is only one tab left
Zachary Yedidia [Wed, 8 Jun 2016 18:38:15 +0000 (14:38 -0400)]
Resize the view correctly when there is only one tab left

8 years agoDon't display the tab bar if only one tab is open
Zachary Yedidia [Wed, 8 Jun 2016 17:29:24 +0000 (13:29 -0400)]
Don't display the tab bar if only one tab is open

8 years agoCreate tab struct and reorganize tab bar
Zachary Yedidia [Wed, 8 Jun 2016 17:26:50 +0000 (13:26 -0400)]
Create tab struct and reorganize tab bar

8 years agoMerge pull request #168 from onodera-punpun/syntax_css
Zachary Yedidia [Wed, 8 Jun 2016 17:11:31 +0000 (13:11 -0400)]
Merge pull request #168 from onodera-punpun/syntax_css

Update css syntax

8 years agofixer :hover, etc., color
Camille Scholtz [Wed, 8 Jun 2016 16:52:42 +0000 (18:52 +0200)]
fixer :hover, etc., color

8 years agocolorize brackets
Camille Scholtz [Wed, 8 Jun 2016 16:45:12 +0000 (18:45 +0200)]
colorize brackets

8 years agomake normal the defualt color
Camille Scholtz [Wed, 8 Jun 2016 16:42:02 +0000 (18:42 +0200)]
make normal the defualt color

8 years agoUpdate css syntax
Camille Scholtz [Wed, 8 Jun 2016 16:38:53 +0000 (18:38 +0200)]
Update css syntax

8 years agoTab bar and support for opening multiple files
Zachary Yedidia [Fri, 3 Jun 2016 20:41:09 +0000 (16:41 -0400)]
Tab bar and support for opening multiple files

8 years agoFix multiline remove in lineArray
Zachary Yedidia [Wed, 8 Jun 2016 14:21:27 +0000 (10:21 -0400)]
Fix multiline remove in lineArray

I forgot that when you remove lines[n] then lines[n+1] becomes lines[n]
so to remove the range lines[a:b] you need to remove lines[a] for a-b
times. In this case we should delete lines[start.Y + 1] over and over
instead of removing lines[i] because i is contantly increasing.

Fixes #166

8 years agoAdd DeleteLine binding
Zachary Yedidia [Wed, 8 Jun 2016 01:47:34 +0000 (21:47 -0400)]
Add DeleteLine binding

Ref #135

8 years agoFix bug with pasting with new Location system
Zachary Yedidia [Tue, 7 Jun 2016 22:24:13 +0000 (18:24 -0400)]
Fix bug with pasting with new Location system

8 years agoAdd more descriptive error message if there is an error with gob
Zachary Yedidia [Tue, 7 Jun 2016 21:03:05 +0000 (17:03 -0400)]
Add more descriptive error message if there is an error with gob

8 years agoFix glitch with undo
Zachary Yedidia [Tue, 7 Jun 2016 20:10:39 +0000 (16:10 -0400)]
Fix glitch with undo

8 years agoMinor fix
Zachary Yedidia [Tue, 7 Jun 2016 18:45:37 +0000 (14:45 -0400)]
Minor fix

8 years agoFix bug with Move()
Zachary Yedidia [Tue, 7 Jun 2016 16:31:02 +0000 (12:31 -0400)]
Fix bug with Move()

8 years agoReplace rope with lineArray
Zachary Yedidia [Tue, 7 Jun 2016 15:43:28 +0000 (11:43 -0400)]
Replace rope with lineArray

8 years agoProper support for double width characters
Zachary Yedidia [Sat, 4 Jun 2016 20:25:11 +0000 (16:25 -0400)]
Proper support for double width characters

Fixes #99

8 years agoFix redraw bug
Zachary Yedidia [Sat, 4 Jun 2016 20:00:53 +0000 (16:00 -0400)]
Fix redraw bug

Fixes #162

8 years agoUpdate readme
Zachary Yedidia [Fri, 3 Jun 2016 15:14:11 +0000 (11:14 -0400)]
Update readme

8 years agoDon't display cursorline if there is a selection
Zachary Yedidia [Thu, 2 Jun 2016 17:15:47 +0000 (13:15 -0400)]
Don't display cursorline if there is a selection

8 years agoRemove "Applying Diff" message on reopen
Zachary Yedidia [Thu, 2 Jun 2016 17:05:57 +0000 (13:05 -0400)]
Remove "Applying Diff" message on reopen

Fixes #160

8 years agoMerge
Zachary Yedidia [Thu, 2 Jun 2016 17:04:11 +0000 (13:04 -0400)]
Merge

8 years agoAdd simple way to save with sudo if you forgot to open micro with sudo
Zachary Yedidia [Thu, 2 Jun 2016 17:01:13 +0000 (13:01 -0400)]
Add simple way to save with sudo if you forgot to open micro with sudo

If you are editing a read-only file and forgot to open micro with sudo
so you could write to it, when saving the file, micro will now give you
the option to save with sudo.

This little hack is used by vim users to achieve the same behavior, but
micro makes it nicer to use. Here is an explanation for how it works:
http://stackoverflow.com/questions/2600783/how-does-the-vim-write-with-sudo-trick-work

Fixes #158

8 years agoMerge pull request #154 from jtolds/master
Zachary Yedidia [Thu, 2 Jun 2016 15:22:19 +0000 (11:22 -0400)]
Merge pull request #154 from jtolds/master

chainable actions and flexible modifiers

8 years agoMerge pull request #159 from onodera-punpun/syntax_cleanup
Zachary Yedidia [Thu, 2 Jun 2016 14:15:02 +0000 (10:15 -0400)]
Merge pull request #159 from onodera-punpun/syntax_cleanup

Clean up shell and fish syntax files

8 years agoClean up shell and fish syntax files
Camille Scholtz [Thu, 2 Jun 2016 12:35:09 +0000 (14:35 +0200)]
Clean up shell and fish syntax files

8 years agochainable actions and flexible modifiers
JT Olds [Wed, 1 Jun 2016 22:06:37 +0000 (16:06 -0600)]
chainable actions and flexible modifiers

Doesn't work quite right yet, but the idea is to support
arbitrary modifiers without having to hardcode in all the permutations
of alt/shift/ctrl for every key, along with chainable actions,
so this can be configured:

   "AltBackspace": "SelectWordLeft,Backspace",

8 years agoSmall improvement to line selection
Zachary Yedidia [Wed, 1 Jun 2016 22:00:49 +0000 (18:00 -0400)]
Small improvement to line selection

8 years agoAdd cursorline option
Zachary Yedidia [Wed, 1 Jun 2016 14:05:17 +0000 (10:05 -0400)]
Add cursorline option

8 years agoMerge pull request #153 from aerth/simplify-go-get
Zachary Yedidia [Wed, 1 Jun 2016 11:45:19 +0000 (07:45 -0400)]
Merge pull request #153 from aerth/simplify-go-get

Simplify go get command

8 years agoFix redraw glitch
Zachary Yedidia [Wed, 1 Jun 2016 11:45:01 +0000 (07:45 -0400)]
Fix redraw glitch

8 years agoSimplify go get command
aerth [Wed, 1 Jun 2016 04:23:48 +0000 (21:23 -0700)]
Simplify go get command

8 years agoMake CursorPageUp and CursorPageDown default
Zachary Yedidia [Tue, 31 May 2016 23:45:19 +0000 (19:45 -0400)]
Make CursorPageUp and CursorPageDown default

This commit also fixes the documentation for PageUp and PageDown.

See #149

8 years agoMerge
Zachary Yedidia [Tue, 31 May 2016 23:25:35 +0000 (19:25 -0400)]
Merge

8 years agoFix redraw glitch
Zachary Yedidia [Tue, 31 May 2016 23:25:32 +0000 (19:25 -0400)]
Fix redraw glitch

8 years agoMerge pull request #150 from jtolds/master
Zachary Yedidia [Tue, 31 May 2016 22:15:22 +0000 (18:15 -0400)]
Merge pull request #150 from jtolds/master

Add CursorPageUp and CursorPageDown actions

8 years agoAdd CursorPageUp and CursorPageDown actions
JT Olds [Tue, 31 May 2016 22:02:42 +0000 (16:02 -0600)]
Add CursorPageUp and CursorPageDown actions

8 years agoScreen redraw optimization
Zachary Yedidia [Tue, 31 May 2016 21:23:08 +0000 (17:23 -0400)]
Screen redraw optimization

We don't have to clear the screen every time, we only have to make sure
that we erase the rest of the line that used to be on the current line.
We can still optimize a bit more by finding the longest line and drawing
to that length, but using the full width is fine for now.

8 years agoAllow changes from external programs to be undone
Zachary Yedidia [Tue, 31 May 2016 01:01:40 +0000 (21:01 -0400)]
Allow changes from external programs to be undone

We use a diff to be able to transform the buffer into an arbitrary
string (usually when we reread the file after an external program such
as gofmt has changed it) and still preserve undo/redo.

Fixes #136

8 years agoFix bug with on reopen
Zachary Yedidia [Mon, 30 May 2016 22:22:10 +0000 (18:22 -0400)]
Fix bug with on reopen

8 years agoRefactor ReOpen function
Zachary Yedidia [Mon, 30 May 2016 21:48:33 +0000 (17:48 -0400)]
Refactor ReOpen function

8 years agoAdd support for user-created commands
Zachary Yedidia [Mon, 30 May 2016 17:38:50 +0000 (13:38 -0400)]
Add support for user-created commands

Plugins can now create their own commands using the `MakeCommand`
function. Plugins can also now create their own keybindings with the
`BindKey` function. See the go plugin for an example of `MakeCommand`.

8 years agoAdd ability to bind lua functions defined in plugins
Zachary Yedidia [Mon, 30 May 2016 13:12:04 +0000 (09:12 -0400)]
Add ability to bind lua functions defined in plugins

8 years agoAdd DeleteWordRight and DeleteWordLeft bindings
Zachary Yedidia [Sun, 29 May 2016 23:09:27 +0000 (19:09 -0400)]
Add DeleteWordRight and DeleteWordLeft bindings

8 years agoUpdate readme
Zachary Yedidia [Sun, 29 May 2016 22:20:43 +0000 (18:20 -0400)]
Update readme

8 years agoCheck if the file being edited has been modified by an external program
Zachary Yedidia [Sun, 29 May 2016 21:58:06 +0000 (17:58 -0400)]
Check if the file being edited has been modified by an external program

8 years agoAdd persistent undo as the option
Zachary Yedidia [Sun, 29 May 2016 15:02:56 +0000 (11:02 -0400)]
Add persistent undo as the  option

8 years agoAdd history navigation with up and down arrows
Zachary Yedidia [Sat, 28 May 2016 22:41:53 +0000 (18:41 -0400)]
Add history navigation with up and down arrows

Fixes #145

8 years agoMerge
Zachary Yedidia [Sat, 28 May 2016 21:32:13 +0000 (17:32 -0400)]
Merge

8 years agoAdd `savecursor` option
Zachary Yedidia [Sat, 28 May 2016 21:29:49 +0000 (17:29 -0400)]
Add `savecursor` option

This adds the `savecursor` option which will remember where the cursor
was when the file was closed and put it back when the file is opened
again. The option is off by default so that people aren't confused as to
why the cursor isn't at the start of a file when they open it.

This commit also adds a more general ability to serialize a buffer so
various components can be saved (which could also be useful for persistent
undo).

Fixes #107

8 years agoMerge pull request #133 from onodera-punpun/packages
Zachary Yedidia [Sat, 28 May 2016 19:53:48 +0000 (15:53 -0400)]
Merge pull request #133 from onodera-punpun/packages

Add Arch and CRUX installation guides.

8 years agoMake Quit() close help if its open and not the whole editor
Zachary Yedidia [Sat, 28 May 2016 18:53:48 +0000 (14:53 -0400)]
Make Quit() close help if its open and not the whole editor

Fixes #146

8 years agoIndicate correct help binding in status line
Zachary Yedidia [Sat, 28 May 2016 17:58:42 +0000 (13:58 -0400)]
Indicate correct help binding in status line

8 years agoAllow users to insert \t and \n in replace commands
Zachary Yedidia [Sat, 28 May 2016 15:40:22 +0000 (11:40 -0400)]
Allow users to insert \t and \n in replace commands

Fixes #144

8 years agoRematch every time a replacement is made
Zachary Yedidia [Sat, 28 May 2016 15:36:48 +0000 (11:36 -0400)]
Rematch every time a replacement is made

8 years agoRefactor and clean up
Zachary Yedidia [Sat, 28 May 2016 15:32:09 +0000 (11:32 -0400)]
Refactor and clean up

This commit puts in place the ability for multiple views (splits).
This commit also removes the editor bindings so that all bindings can be
rebound by the user.
I also added some more comments

This fixes #109