]> git.lizzy.rs Git - micro.git/log
micro.git
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

8 years agoMerge pull request #139 from onodera-punpun/undo_option
Zachary Yedidia [Fri, 27 May 2016 22:05:37 +0000 (18:05 -0400)]
Merge pull request #139 from onodera-punpun/undo_option

make undothresthold a setting and add stackundo option

8 years agoFix typo
Camille [Fri, 27 May 2016 21:39:53 +0000 (23:39 +0200)]
Fix typo

8 years agoRemove undo options, make stackundo default behavior
Camille Scholtz [Fri, 27 May 2016 21:39:27 +0000 (23:39 +0200)]
Remove undo options, make stackundo default behavior

8 years agoAdd stackundo option
Camille Scholtz [Thu, 26 May 2016 17:36:59 +0000 (19:36 +0200)]
Add stackundo option

8 years agoFix highlighting and searching with unicode characters
Zachary Yedidia [Wed, 25 May 2016 15:49:04 +0000 (11:49 -0400)]
Fix highlighting and searching with unicode characters

Fixes #134
Fixes #138

8 years agoMake sure there is a selection before deleting it
Zachary Yedidia [Tue, 24 May 2016 21:46:46 +0000 (17:46 -0400)]
Make sure there is a selection before deleting it

Fixes #140

8 years agomake undothresthold a setting (part 2)
Camille Scholtz [Tue, 24 May 2016 19:40:05 +0000 (21:40 +0200)]
make undothresthold a setting (part 2)

8 years agomake undothresthold a setting
Camille Scholtz [Tue, 24 May 2016 19:38:46 +0000 (21:38 +0200)]
make undothresthold a setting

8 years agoDo a bounds check for charpos function
Zachary Yedidia [Tue, 24 May 2016 13:15:01 +0000 (09:15 -0400)]
Do a bounds check for charpos function

8 years agoFix crash
Zachary Yedidia [Mon, 23 May 2016 00:59:31 +0000 (20:59 -0400)]
Fix crash

8 years agoImprove the scrollmargin behavior at the end of the buffer
Zachary Yedidia [Sun, 22 May 2016 21:52:42 +0000 (17:52 -0400)]
Improve the scrollmargin behavior at the end of the buffer

8 years agoFix tabstospaces problem
Zachary Yedidia [Sun, 22 May 2016 19:47:28 +0000 (15:47 -0400)]
Fix tabstospaces problem

8 years agoRename to tabstospaces for consistency
Zachary Yedidia [Sun, 22 May 2016 19:35:57 +0000 (15:35 -0400)]
Rename to tabstospaces for consistency

8 years agoMerge pull request #130 from onodera-punpun/center_search
Zachary Yedidia [Sun, 22 May 2016 19:35:29 +0000 (15:35 -0400)]
Merge pull request #130 from onodera-punpun/center_search

Add a bit of "padding" to relocate.

8 years agoAdd ability to bind alt keys
Zachary Yedidia [Sun, 22 May 2016 19:33:40 +0000 (15:33 -0400)]
Add ability to bind alt keys

This lets you bind keys like Alt-b or Alt-f.
This commit also adds some new default keybindings in emacs style, so
alt-a is beginning of line and alt-e is end etc...

8 years agoStore cursor and eventhandler in buffer instead of view
Zachary Yedidia [Sun, 22 May 2016 19:01:02 +0000 (15:01 -0400)]
Store cursor and eventhandler in buffer instead of view

This is better design because the cursor and eventhandler are things the
buffer should know about directly but the view shouldn't. This should
make it easier to add persistent undo or location saving between
sessions (see #107).

8 years agoRemove dollar sign
Camille Scholtz [Sat, 21 May 2016 22:28:29 +0000 (00:28 +0200)]
Remove dollar sign

8 years agoAdd Arch and CRUX installation guides
Camille Scholtz [Sat, 21 May 2016 22:25:49 +0000 (00:25 +0200)]
Add Arch and CRUX installation guides

8 years agosimplify scrollmargins
Camille Scholtz [Fri, 20 May 2016 18:06:01 +0000 (20:06 +0200)]
simplify scrollmargins

8 years agoMove scrollmargin declaration
Camille Scholtz [Fri, 20 May 2016 17:46:18 +0000 (19:46 +0200)]
Move scrollmargin declaration

8 years agoAdd scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make...
Camille Scholtz [Fri, 20 May 2016 17:44:16 +0000 (19:44 +0200)]
Add scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make help.md more consistent (replaced some spaces with tabs)