Commit Graph

116 Commits

Author SHA1 Message Date
Dante Swift
a03cacf1e7 saving now resets buffer IsModified to false 2016-05-15 00:26:36 -06:00
Zachary Yedidia
e2efc963b7 Simplify IsDirty check 2016-05-14 12:04:13 -04:00
Zachary Yedidia
29ae840413 Use rope substring instead of report 2016-05-07 10:57:40 -04:00
Zachary Yedidia
8670a03973 Add the text member back.
It seems rope.Report is not acting how I expected it to. I need to look
into this in more detail but for now I am adding the Text variable back
to the Buffer.

Fixes #98
2016-05-06 19:15:10 -04:00
Zachary Yedidia
aeff0f8170 Merge pull request #82 from zyedidia/plugins
Plugin System
2016-05-06 11:56:24 -04:00
Zachary Yedidia
ae946c5f5e Update runtime 2016-05-06 11:55:41 -04:00
aerth
5baf2e226d Hint at ^P and ^N after finding 2016-05-06 02:52:51 -07:00
Zachary Yedidia
31567c9e15 Add linter option 2016-05-05 12:53:28 -04:00
Zachary Yedidia
3cbb23bfbe Add automatic linting for Go, Python, C, D, Java, Javascript, Lua 2016-05-05 12:53:27 -04:00
Zachary Yedidia
1668e91310 Add linter plugin to easily make linters 2016-05-05 12:53:27 -04:00
Zachary Yedidia
59e71a4a0c Improved error parsing and use warnings for golint instead of errors 2016-05-05 12:53:27 -04:00
Zachary Yedidia
908bcb22ae Have go plugin create its own options 2016-05-05 12:53:27 -04:00
Zachary Yedidia
05e2886dca Fix build error 2016-05-05 12:53:27 -04:00
Zachary Yedidia
a262530217 Fix gutter message line counting 2016-05-05 12:53:27 -04:00
Zachary Yedidia
30c7a9c4a5 Refine gutter messages and add go build checking to go plugin 2016-05-05 12:53:27 -04:00
Zachary Yedidia
d933efc53d Add hooks for every action that's bindable 2016-05-05 12:53:26 -04:00
Zachary Yedidia
a333f0ade2 Add default plugins, and install go plugin by default 2016-05-05 12:53:26 -04:00
Zachary Yedidia
603cec9d81 Load plugins from ~/.config/micro/plugins 2016-05-05 12:53:07 -04:00
Zachary Yedidia
eba820a9c7 Rewrite gofmt and goimports as plugins 2016-05-05 12:53:07 -04:00
Zachary Yedidia
e05e993e25 Interface with plugin.lua file 2016-05-05 11:31:59 -04:00
Zachary Yedidia
87d9221a73 Small optimization 2016-05-05 11:23:20 -04:00
Zachary Yedidia
f6dc983823 Optimization for buffer text
We no longer store a string representation of the buffer and instead
directly access it through the rope
2016-05-04 12:43:17 -04:00
Zachary Yedidia
c163aaa895 Small fix to relocation 2016-05-04 07:24:33 -04:00
aerth
896ade2041 Add Ctrl+L jump to line #, JumpLine()
Converts input to integer
	Returns error if any
	Only jumps to possible lines
	Returns number of lines available
2016-05-04 07:48:28 -07:00
Zachary Yedidia
5aace36618 Update screenshot and status line 2016-05-03 18:54:01 -04:00
Zachary Yedidia
cf2db5dfe7 Add R syntax file
Closes #91
2016-05-02 15:01:46 -04:00
Zachary Yedidia
07d8a08422 Use tcell's EventPaste to capture paste from the OS
This commit uses the recent commit to zyedidia/tcell to capture paste
events from the OS.

Fixes #60
Fixes #61
2016-05-02 11:16:03 -04:00
Zachary Yedidia
4ca6e65197 Default setting for tabsize should be float64 not int
Fixes #92
2016-05-02 07:23:08 -04:00
Zachary Yedidia
48a17a508d Use hash for savedText instead of full string 2016-05-01 19:07:54 -04:00
Zachary Yedidia
efb4b5e899 Don't store buffer in text event 2016-05-01 16:45:23 -04:00
Zachary Yedidia
012668146c Remove unnecessary check for selection 2016-04-30 16:56:48 -04:00
Zachary Yedidia
539d4b1167 Fix differences between selection with keys and with mouse
Fixes #89
2016-04-30 16:51:21 -04:00
Zachary Yedidia
9ad2820e5e Change selection color in solarized colorscheme 2016-04-30 15:32:33 -04:00
Zachary Yedidia
56cdfcfe46 If a setting is not defined, use the default, not the zero value 2016-04-30 15:02:33 -04:00
Zachary Yedidia
e0f20fbb55 Fix selection bugs 2016-04-30 14:06:00 -04:00
Zachary Yedidia
ebf91a7432 Constrain help text to 80 columns 2016-04-30 12:43:40 -04:00
Zachary Yedidia
f6393dd835 Use a map for settings instead of a struct
Using a map for the settings means that plugins will be able to create
their own settings at runtime.
2016-04-30 11:39:48 -04:00
Zachary Yedidia
18b0b3e97d Add bindings for shiftup and shiftdown 2016-04-28 21:00:46 -04:00
Zachary Yedidia
536c96237c Merge branch 'gutter-messages' 2016-04-27 12:33:45 -04:00
Zachary Yedidia
53249c46f5 Support different types of gutter messages 2016-04-27 12:33:33 -04:00
Zachary Yedidia
e1e441f588 Merge branch 'elementary-mouse' 2016-04-27 11:23:47 -04:00
Zachary Yedidia
cf8de5e11d Simple support for gutter messages 2016-04-27 11:22:57 -04:00
Zachary Yedidia
80755dcf31 Improve word movement behavior 2016-04-27 10:44:36 -04:00
Zachary Yedidia
6576dcc168 Merge branch 'arrow-bindings' 2016-04-26 21:15:08 -04:00
Zachary Yedidia
8e03e20055 Minor cleanup 2016-04-26 20:18:56 -04:00
Zachary Yedidia
6d2845ca35 Add mappings for ctrl keys 2016-04-26 20:14:58 -04:00
Zachary Yedidia
84a844994a Correct word movement behavior 2016-04-26 19:53:43 -04:00
Zachary Yedidia
6c99eea610 Improve WordRight and WordLeft bindings 2016-04-26 09:58:56 -04:00
Zachary Yedidia
e00e0cfa3f Starting to add more mappings for arrow keys
These mappings include Alt+arrows and Shift+arrows and Alt+Shift+arrows

This commit also switches the version of tcell that micro uses to my
fork which supports alt, shift, and ctrl + arrows.
2016-04-26 09:58:56 -04:00
Zachary Yedidia
269f15d88f Also use KeyBackspace for deleting in prompt
Fixes #78
2016-04-26 09:44:08 -04:00