Zachary Yedidia
df684ec505
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 ).
2016-05-22 15:01:02 -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
eba820a9c7
Rewrite gofmt and goimports as plugins
2016-05-05 12:53:07 -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
539d4b1167
Fix differences between selection with keys and with mouse
...
Fixes #89
2016-04-30 16:51:21 -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
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
80755dcf31
Improve word movement behavior
2016-04-27 10:44:36 -04:00
Zachary Yedidia
8e03e20055
Minor cleanup
2016-04-26 20:18:56 -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
20ab7a44ab
Relocate cursor on reOpen()
2016-04-24 17:26:42 -04:00
aerth
b39d383dac
cut lines into clipboard
2016-04-24 01:29:09 +00:00
Zachary Yedidia
0fac02cd08
Fix SelectLine
2016-04-23 14:02:20 -04:00
Zachary Yedidia
77caf5878d
Fix windows binary links
...
Fixes #47
2016-04-21 07:05:15 -04:00
Zachary Yedidia
6aab17f445
Set last visual x after SetLoc is called
...
Fixes #46
2016-04-20 20:03:53 -04:00
aerth
337f162360
now is go gettable and updated make file
2016-04-18 10:59:41 +00:00