Zachary Yedidia
1fe18eecb7
Add history navigation with up and down arrows
...
Fixes #145
2016-05-28 18:41:53 -04:00
Zachary Yedidia
a92a7dc4e6
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
2016-05-28 17:29:49 -04:00
Zachary Yedidia
96c7bc67c0
Make Quit() close help if its open and not the whole editor
...
Fixes #146
2016-05-28 14:53:48 -04:00
Zachary Yedidia
87d147cf92
Indicate correct help binding in status line
2016-05-28 13:58:42 -04:00
Zachary Yedidia
e8d8da1443
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
2016-05-28 11:32:09 -04:00
Zachary Yedidia
ca58fc949e
Make sure there is a selection before deleting it
...
Fixes #140
2016-05-24 17:46:46 -04:00
Zachary Yedidia
6ece5bc41a
Fix tabstospaces problem
2016-05-22 15:47:28 -04:00
Zachary Yedidia
f9adcd525d
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...
2016-05-22 15:33:40 -04:00
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
0673396335
Merge branch 'duplicate' of https://github.com/onodera-punpun/micro into onodera-punpun-duplicate
2016-05-20 09:46:54 -04:00
Zachary Yedidia
009792b6b1
Fix ctrl modifiers
2016-05-20 09:41:00 -04:00
Zachary Yedidia
3d6eba376d
Merge
2016-05-20 09:19:28 -04:00
Zachary Yedidia
ebaad9b00c
Use the new and updated version of tcell
2016-05-20 09:19:25 -04:00
Camille Scholtz
81e1a6e157
Give shortcuts more message feedback, add duplicate line option ( fixes #124 )
2016-05-20 00:04:53 +02:00
aerth
17397d503e
add binding for ClearStatus
2016-05-18 07:18:14 -07:00
Zachary Yedidia
333c4ac6b1
Fix ordering of selection on SelectAll
...
Fixes #119
2016-05-18 09:27:17 -04:00
Camille Scholtz
4a38f232c0
Add copy feedback
2016-05-17 20:09:59 +02:00
Zachary Yedidia
aeff0f8170
Merge pull request #82 from zyedidia/plugins
...
Plugin System
2016-05-06 11:56:24 -04:00
aerth
5baf2e226d
Hint at ^P and ^N after finding
2016-05-06 02:52:51 -07: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
539d4b1167
Fix differences between selection with keys and with mouse
...
Fixes #89
2016-04-30 16:51:21 -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
18b0b3e97d
Add bindings for shiftup and shiftdown
2016-04-28 21:00:46 -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
0ee6be3d0f
Use methods on view instead of functions for bindings
2016-04-24 18:32:18 -04:00
Zachary Yedidia
1d9d0c3a4d
Fix PageUp and PageDown bindings
...
Fixes #72 .
2016-04-24 14:40:30 -04:00
Zachary Yedidia
8807ede224
Added StartOfLine and EndOfLine actions
...
This commit also adds error reporting for invalid json.
Fixes #36 .
2016-04-24 09:01:01 -04:00
Zachary Yedidia
d088b7c2df
Merge pull request #71 from aerth/gofmt-2
...
gofmt-on-save redone for new bindings
2016-04-24 07:47:48 -04:00
aerth
7746952545
gofmt-on-save redone for new bindings
2016-04-24 01:48:51 +00:00
aerth
b39d383dac
cut lines into clipboard
2016-04-24 01:29:09 +00:00
Zachary Yedidia
af3715d55d
If system clipboard is unsupported, use internal clipboard instead
...
Fixes #65
2016-04-23 20:54:52 -04:00
Zachary Yedidia
77853ec6b6
Use my fork of clipboard
2016-04-23 20:52:26 -04:00
Zachary Yedidia
93c3a503ea
Use default binding for key if not specified
2016-04-23 19:03:24 -04:00
Zachary Yedidia
fa82fc2b74
Add delete key binding
...
Fixes #54
2016-04-23 18:58:02 -04:00
Zachary Yedidia
94c0f576e1
Load and save key bindings from bindings.json
2016-04-23 18:43:09 -04:00
Zachary Yedidia
2adaf68bd4
Rework the bindings as keys bound to actions
2016-04-23 18:25:08 -04:00