Commit graph

465 commits

Author SHA1 Message Date
Hugo Locurcio ffcb6d601b
Add a Monokai colorscheme 2016-06-23 10:01:48 +02:00
Zachary Yedidia e6adc173f3 Fix issue with autoclose plugin 2016-06-22 21:03:40 -04:00
Zachary Yedidia dbeb99bb6b 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.
2016-06-22 18:51:36 -04:00
Zachary Yedidia 5c68a67e52 Update README.md 2016-06-22 13:59:07 -04:00
Zachary Yedidia c0b59d2992 Update README.md 2016-06-22 13:58:07 -04:00
Zachary Yedidia 6665834cca 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
2016-06-22 13:54:42 -04:00
Zachary Yedidia 47efea6501 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.
2016-06-21 17:57:25 -04:00
Zachary Yedidia d32d373bff Only copy messages if there is a mouse left click (not any mouse event) 2016-06-21 17:54:36 -04:00
Zachary Yedidia 77b6c2c486 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.
2016-06-21 17:49:57 -04:00
Zachary Yedidia c1dadbd0c7 Fix mouse controls
Fixes #173
2016-06-19 09:02:47 -04:00
Zachary Yedidia 8be0f9c529 Clicking on messages will copy them to the clipboard
Fixes #172
2016-06-17 11:24:54 -04:00
Zachary Yedidia d2277a376a 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.
2016-06-15 11:19:00 -04:00
Zachary Yedidia ceb5760d6d Update windows binary name to .zip 2016-06-12 11:35:12 -04:00
Zachary Yedidia 98963b19d9 Update readme 2016-06-12 11:24:09 -04:00
Zachary Yedidia 73bc12ae72 Add nightly release script 2016-06-12 11:05:19 -04:00
Zachary Yedidia 4a860625af Also allow ModShift to be on for windows terminals
Fixes #165
2016-06-11 19:41:37 -04:00
Zachary Yedidia 553b3d80c4 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
2016-06-11 11:23:05 -04:00
Zachary Yedidia cdfea45a49 Fix cursor line in true color colorschemes
Ref #171
2016-06-09 16:00:43 -04:00
Zachary Yedidia f3f14193c2 Fix autocompletion using a slash 2016-06-09 13:36:16 -04:00
Zachary Yedidia e2079ac88e Add file completion to OpenFile (CtrlO) with tab 2016-06-09 10:03:50 -04:00
Zachary Yedidia 1f89b41070 Fix mouse coordinates when tabbar is open
Fixes #170
2016-06-09 09:29:23 -04:00
Zachary Yedidia 1295b877e3 Fix tabbar bug
Fixes #169
2016-06-08 21:07:40 -04:00
Zachary Yedidia 860bc248c4 Fix resizing of tabs opened with the command line 2016-06-08 19:43:05 -04:00
Zachary Yedidia 82c7994e68 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.
2016-06-08 18:49:08 -04:00
Zachary Yedidia 2c73e1c043 Add default bindings for PreviousTab and NextTab 2016-06-08 18:48:59 -04:00
Zachary Yedidia a79e964cb6 Make tabs respond to mouse events 2016-06-08 17:47:48 -04:00
Zachary Yedidia 059a5c3b89 Resize the view correctly when there is only one tab left 2016-06-08 14:38:15 -04:00
Zachary Yedidia 57f769c9a1 Don't display the tab bar if only one tab is open 2016-06-08 13:29:24 -04:00
Zachary Yedidia 40affa56c7 Create tab struct and reorganize tab bar 2016-06-08 13:26:50 -04:00
Zachary Yedidia a8de4bcd8a Merge pull request #168 from onodera-punpun/syntax_css
Update css syntax
2016-06-08 13:11:31 -04:00
Camille Scholtz b9f9c4ca0a fixer :hover, etc., color 2016-06-08 18:52:42 +02:00
Camille Scholtz 8a38f897d7 colorize brackets 2016-06-08 18:45:12 +02:00
Camille Scholtz e9d14838a8 make normal the defualt color 2016-06-08 18:42:02 +02:00
Camille Scholtz bc40d3e4e9 Update css syntax 2016-06-08 18:38:53 +02:00
Zachary Yedidia 5f19f69681 Tab bar and support for opening multiple files 2016-06-08 12:19:36 -04:00
Zachary Yedidia 3080e32a8f 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
2016-06-08 10:21:27 -04:00
Zachary Yedidia bd0fa7b6c2 Add DeleteLine binding
Ref #135
2016-06-07 21:47:34 -04:00
Zachary Yedidia 3deee51537 Fix bug with pasting with new Location system 2016-06-07 18:24:13 -04:00
Zachary Yedidia d72da1eb5c Add more descriptive error message if there is an error with gob 2016-06-07 17:03:05 -04:00
Zachary Yedidia 8d184c1870 Fix glitch with undo 2016-06-07 16:10:39 -04:00
Zachary Yedidia f0b6725000 Minor fix 2016-06-07 14:45:37 -04:00
Zachary Yedidia f0faeb3a3e Fix bug with Move() 2016-06-07 12:31:02 -04:00
Zachary Yedidia 72f5808025 Replace rope with lineArray 2016-06-07 11:43:28 -04:00
Zachary Yedidia d6307b2718 Proper support for double width characters
Fixes #99
2016-06-04 16:25:11 -04:00
Zachary Yedidia 852bd2c904 Fix redraw bug
Fixes #162
2016-06-04 16:00:53 -04:00
Zachary Yedidia 3f0c5791b4 Update readme 2016-06-03 11:14:11 -04:00
Zachary Yedidia 3d62a1baa0 Don't display cursorline if there is a selection 2016-06-02 13:15:47 -04:00
Zachary Yedidia 7e218562a3 Remove "Applying Diff" message on reopen
Fixes #160
2016-06-02 13:05:57 -04:00
Zachary Yedidia e6c6c7f47d Merge 2016-06-02 13:04:11 -04:00
Zachary Yedidia 1d52ef6c54 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
2016-06-02 13:01:13 -04:00