Commit graph

390 commits

Author SHA1 Message Date
Zachary Yedidia
1c127a6c3f Merge 2016-05-28 17:32:13 -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
82594b9beb Merge pull request #133 from onodera-punpun/packages
Add Arch and CRUX installation guides.
2016-05-28 15:53:48 -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
a08f457cd0 Allow users to insert \t and \n in replace commands
Fixes #144
2016-05-28 11:40:22 -04:00
Zachary Yedidia
b641d67561 Rematch every time a replacement is made 2016-05-28 11:36:48 -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
d9d0af4a99 Merge pull request #139 from onodera-punpun/undo_option
make undothresthold a setting and add stackundo option
2016-05-27 18:05:37 -04:00
Camille
00fe82e9c7 Fix typo 2016-05-27 23:39:53 +02:00
Camille Scholtz
1806ef3ad0 Remove undo options, make stackundo default behavior 2016-05-27 23:39:27 +02:00
Camille Scholtz
007ece1e78 Add stackundo option 2016-05-26 19:36:59 +02:00
Zachary Yedidia
66d448a59c Fix highlighting and searching with unicode characters
Fixes #134
Fixes #138
2016-05-25 11:49:04 -04:00
Zachary Yedidia
ca58fc949e Make sure there is a selection before deleting it
Fixes #140
2016-05-24 17:46:46 -04:00
Camille Scholtz
e553815501 make undothresthold a setting (part 2) 2016-05-24 21:40:05 +02:00
Camille Scholtz
3da2a870b6 make undothresthold a setting 2016-05-24 21:38:46 +02:00
Zachary Yedidia
f730864e9f Do a bounds check for charpos function 2016-05-24 09:15:01 -04:00
Zachary Yedidia
55a6b6701d Fix crash 2016-05-22 20:59:31 -04:00
Zachary Yedidia
7d1d118fee Improve the scrollmargin behavior at the end of the buffer 2016-05-22 17:52:42 -04:00
Zachary Yedidia
6ece5bc41a Fix tabstospaces problem 2016-05-22 15:47:28 -04:00
Zachary Yedidia
4cc85868d9 Rename to tabstospaces for consistency 2016-05-22 15:35:57 -04:00
Zachary Yedidia
74e55f03fe Merge pull request #130 from onodera-punpun/center_search
Add a bit of "padding" to relocate.
2016-05-22 15:35:29 -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
Camille Scholtz
e13b856773 Remove dollar sign 2016-05-22 00:28:29 +02:00
Camille Scholtz
8a3780c695 Add Arch and CRUX installation guides 2016-05-22 00:25:49 +02:00
Camille Scholtz
52f1be5725 simplify scrollmargins 2016-05-20 20:06:01 +02:00
Camille Scholtz
9791f192f8 Move scrollmargin declaration 2016-05-20 19:46:18 +02:00
Camille Scholtz
116b247439 Add scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make help.md more consistent (replaced some spaces with tabs) 2016-05-20 19:44:16 +02:00
Camille Scholtz
096221fd0e Add padding to relocate func (fixes weird scrolling behavior) 2016-05-20 17:43:26 +02:00
Camille Scholtz
bbcd33d9fd Add a bit of "padding" to relocate 2016-05-20 17:34:20 +02:00
Zachary Yedidia
6eeda5d21f Merge branch 'onodera-punpun-duplicate' 2016-05-20 09:47:18 -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
2d99d0d57a Forgot a comma there 2016-05-20 00:06:09 +02:00
Camille Scholtz
81e1a6e157 Give shortcuts more message feedback, add duplicate line option (fixes #124) 2016-05-20 00:04:53 +02:00
Zachary Yedidia
342149af3f Add colorscheme to makefile syntax file
Closes #125
2016-05-19 07:26:10 -04:00
Zachary Yedidia
b4fd6de449 Merge pull request #123 from onodera-punpun/package_syntax
Add some distro specific files to syntax
2016-05-18 14:03:47 -04:00
Camille Scholtz
671efa774d Add some distro specific files to syntax 2016-05-18 19:40:05 +02:00
Zachary Yedidia
b0930a0bb8 Merge pull request #121 from onodera-punpun/case_insensitive
search case insensitive
2016-05-18 12:47:40 -04:00
Camille Scholtz
bfbfc50018 Add ignorecase option 2016-05-18 18:44:32 +02:00
Camille Scholtz
2a95d0b012 search case insensitive 2016-05-18 18:11:11 +02:00
Zachary Yedidia
04c5bf8832 Merge pull request #120 from aerth/clearmsg
add binding for ClearStatus
2016-05-18 12:11:02 -04:00
aerth
17397d503e
add binding for ClearStatus 2016-05-18 07:18:14 -07:00
Zachary Yedidia
77d8a2217f Fix selection graphics for indentchar 2016-05-18 09:33:49 -04:00
Zachary Yedidia
333c4ac6b1 Fix ordering of selection on SelectAll
Fixes #119
2016-05-18 09:27:17 -04:00
Zachary Yedidia
d7b61ecfa8 Fix small bug in Remove function in buffer 2016-05-17 19:57:16 -04:00
Zachary Yedidia
94d2bc3cb0 Merge pull request #115 from onodera-punpun/copypaste_feedback
Add copy feedback
2016-05-17 14:54:13 -04:00