]> git.lizzy.rs Git - micro.git/log
micro.git
8 years agoAdd default bindings for PreviousTab and NextTab
Zachary Yedidia [Wed, 8 Jun 2016 22:48:59 +0000 (18:48 -0400)]
Add default bindings for PreviousTab and NextTab

8 years agoMake tabs respond to mouse events
Zachary Yedidia [Wed, 8 Jun 2016 21:47:48 +0000 (17:47 -0400)]
Make tabs respond to mouse events

8 years agoResize the view correctly when there is only one tab left
Zachary Yedidia [Wed, 8 Jun 2016 18:38:15 +0000 (14:38 -0400)]
Resize the view correctly when there is only one tab left

8 years agoDon't display the tab bar if only one tab is open
Zachary Yedidia [Wed, 8 Jun 2016 17:29:24 +0000 (13:29 -0400)]
Don't display the tab bar if only one tab is open

8 years agoCreate tab struct and reorganize tab bar
Zachary Yedidia [Wed, 8 Jun 2016 17:26:50 +0000 (13:26 -0400)]
Create tab struct and reorganize tab bar

8 years agoTab bar and support for opening multiple files
Zachary Yedidia [Fri, 3 Jun 2016 20:41:09 +0000 (16:41 -0400)]
Tab bar and support for opening multiple files

8 years agoFix multiline remove in lineArray
Zachary Yedidia [Wed, 8 Jun 2016 14:21:27 +0000 (10:21 -0400)]
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

8 years agoAdd DeleteLine binding
Zachary Yedidia [Wed, 8 Jun 2016 01:47:34 +0000 (21:47 -0400)]
Add DeleteLine binding

Ref #135

8 years agoFix bug with pasting with new Location system
Zachary Yedidia [Tue, 7 Jun 2016 22:24:13 +0000 (18:24 -0400)]
Fix bug with pasting with new Location system

8 years agoAdd more descriptive error message if there is an error with gob
Zachary Yedidia [Tue, 7 Jun 2016 21:03:05 +0000 (17:03 -0400)]
Add more descriptive error message if there is an error with gob

8 years agoFix glitch with undo
Zachary Yedidia [Tue, 7 Jun 2016 20:10:39 +0000 (16:10 -0400)]
Fix glitch with undo

8 years agoMinor fix
Zachary Yedidia [Tue, 7 Jun 2016 18:45:37 +0000 (14:45 -0400)]
Minor fix

8 years agoFix bug with Move()
Zachary Yedidia [Tue, 7 Jun 2016 16:31:02 +0000 (12:31 -0400)]
Fix bug with Move()

8 years agoReplace rope with lineArray
Zachary Yedidia [Tue, 7 Jun 2016 15:43:28 +0000 (11:43 -0400)]
Replace rope with lineArray

8 years agoProper support for double width characters
Zachary Yedidia [Sat, 4 Jun 2016 20:25:11 +0000 (16:25 -0400)]
Proper support for double width characters

Fixes #99

8 years agoFix redraw bug
Zachary Yedidia [Sat, 4 Jun 2016 20:00:53 +0000 (16:00 -0400)]
Fix redraw bug

Fixes #162

8 years agoUpdate readme
Zachary Yedidia [Fri, 3 Jun 2016 15:14:11 +0000 (11:14 -0400)]
Update readme

8 years agoDon't display cursorline if there is a selection
Zachary Yedidia [Thu, 2 Jun 2016 17:15:47 +0000 (13:15 -0400)]
Don't display cursorline if there is a selection

8 years agoRemove "Applying Diff" message on reopen
Zachary Yedidia [Thu, 2 Jun 2016 17:05:57 +0000 (13:05 -0400)]
Remove "Applying Diff" message on reopen

Fixes #160

8 years agoMerge
Zachary Yedidia [Thu, 2 Jun 2016 17:04:11 +0000 (13:04 -0400)]
Merge

8 years agoAdd simple way to save with sudo if you forgot to open micro with sudo
Zachary Yedidia [Thu, 2 Jun 2016 17:01:13 +0000 (13:01 -0400)]
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

8 years agoMerge pull request #154 from jtolds/master
Zachary Yedidia [Thu, 2 Jun 2016 15:22:19 +0000 (11:22 -0400)]
Merge pull request #154 from jtolds/master

chainable actions and flexible modifiers

8 years agoMerge pull request #159 from onodera-punpun/syntax_cleanup
Zachary Yedidia [Thu, 2 Jun 2016 14:15:02 +0000 (10:15 -0400)]
Merge pull request #159 from onodera-punpun/syntax_cleanup

Clean up shell and fish syntax files

8 years agoClean up shell and fish syntax files
Camille Scholtz [Thu, 2 Jun 2016 12:35:09 +0000 (14:35 +0200)]
Clean up shell and fish syntax files

8 years agochainable actions and flexible modifiers
JT Olds [Wed, 1 Jun 2016 22:06:37 +0000 (16:06 -0600)]
chainable actions and flexible modifiers

Doesn't work quite right yet, but the idea is to support
arbitrary modifiers without having to hardcode in all the permutations
of alt/shift/ctrl for every key, along with chainable actions,
so this can be configured:

   "AltBackspace": "SelectWordLeft,Backspace",

8 years agoSmall improvement to line selection
Zachary Yedidia [Wed, 1 Jun 2016 22:00:49 +0000 (18:00 -0400)]
Small improvement to line selection

8 years agoAdd cursorline option
Zachary Yedidia [Wed, 1 Jun 2016 14:05:17 +0000 (10:05 -0400)]
Add cursorline option

8 years agoMerge pull request #153 from aerth/simplify-go-get
Zachary Yedidia [Wed, 1 Jun 2016 11:45:19 +0000 (07:45 -0400)]
Merge pull request #153 from aerth/simplify-go-get

Simplify go get command

8 years agoFix redraw glitch
Zachary Yedidia [Wed, 1 Jun 2016 11:45:01 +0000 (07:45 -0400)]
Fix redraw glitch

8 years agoSimplify go get command
aerth [Wed, 1 Jun 2016 04:23:48 +0000 (21:23 -0700)]
Simplify go get command

8 years agoMake CursorPageUp and CursorPageDown default
Zachary Yedidia [Tue, 31 May 2016 23:45:19 +0000 (19:45 -0400)]
Make CursorPageUp and CursorPageDown default

This commit also fixes the documentation for PageUp and PageDown.

See #149

8 years agoMerge
Zachary Yedidia [Tue, 31 May 2016 23:25:35 +0000 (19:25 -0400)]
Merge

8 years agoFix redraw glitch
Zachary Yedidia [Tue, 31 May 2016 23:25:32 +0000 (19:25 -0400)]
Fix redraw glitch

8 years agoMerge pull request #150 from jtolds/master
Zachary Yedidia [Tue, 31 May 2016 22:15:22 +0000 (18:15 -0400)]
Merge pull request #150 from jtolds/master

Add CursorPageUp and CursorPageDown actions

8 years agoAdd CursorPageUp and CursorPageDown actions
JT Olds [Tue, 31 May 2016 22:02:42 +0000 (16:02 -0600)]
Add CursorPageUp and CursorPageDown actions

8 years agoScreen redraw optimization
Zachary Yedidia [Tue, 31 May 2016 21:23:08 +0000 (17:23 -0400)]
Screen redraw optimization

We don't have to clear the screen every time, we only have to make sure
that we erase the rest of the line that used to be on the current line.
We can still optimize a bit more by finding the longest line and drawing
to that length, but using the full width is fine for now.

8 years agoAllow changes from external programs to be undone
Zachary Yedidia [Tue, 31 May 2016 01:01:40 +0000 (21:01 -0400)]
Allow changes from external programs to be undone

We use a diff to be able to transform the buffer into an arbitrary
string (usually when we reread the file after an external program such
as gofmt has changed it) and still preserve undo/redo.

Fixes #136

8 years agoFix bug with on reopen
Zachary Yedidia [Mon, 30 May 2016 22:22:10 +0000 (18:22 -0400)]
Fix bug with on reopen

8 years agoRefactor ReOpen function
Zachary Yedidia [Mon, 30 May 2016 21:48:33 +0000 (17:48 -0400)]
Refactor ReOpen function

8 years agoAdd support for user-created commands
Zachary Yedidia [Mon, 30 May 2016 17:38:50 +0000 (13:38 -0400)]
Add support for user-created commands

Plugins can now create their own commands using the `MakeCommand`
function. Plugins can also now create their own keybindings with the
`BindKey` function. See the go plugin for an example of `MakeCommand`.

8 years agoAdd ability to bind lua functions defined in plugins
Zachary Yedidia [Mon, 30 May 2016 13:12:04 +0000 (09:12 -0400)]
Add ability to bind lua functions defined in plugins

8 years agoAdd DeleteWordRight and DeleteWordLeft bindings
Zachary Yedidia [Sun, 29 May 2016 23:09:27 +0000 (19:09 -0400)]
Add DeleteWordRight and DeleteWordLeft bindings

8 years agoUpdate readme
Zachary Yedidia [Sun, 29 May 2016 22:20:43 +0000 (18:20 -0400)]
Update readme

8 years agoCheck if the file being edited has been modified by an external program
Zachary Yedidia [Sun, 29 May 2016 21:58:06 +0000 (17:58 -0400)]
Check if the file being edited has been modified by an external program

8 years agoAdd persistent undo as the option
Zachary Yedidia [Sun, 29 May 2016 15:02:56 +0000 (11:02 -0400)]
Add persistent undo as the  option

8 years agoAdd history navigation with up and down arrows
Zachary Yedidia [Sat, 28 May 2016 22:41:53 +0000 (18:41 -0400)]
Add history navigation with up and down arrows

Fixes #145

8 years agoMerge
Zachary Yedidia [Sat, 28 May 2016 21:32:13 +0000 (17:32 -0400)]
Merge

8 years agoAdd `savecursor` option
Zachary Yedidia [Sat, 28 May 2016 21:29:49 +0000 (17:29 -0400)]
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

8 years agoMerge pull request #133 from onodera-punpun/packages
Zachary Yedidia [Sat, 28 May 2016 19:53:48 +0000 (15:53 -0400)]
Merge pull request #133 from onodera-punpun/packages

Add Arch and CRUX installation guides.

8 years agoMake Quit() close help if its open and not the whole editor
Zachary Yedidia [Sat, 28 May 2016 18:53:48 +0000 (14:53 -0400)]
Make Quit() close help if its open and not the whole editor

Fixes #146

8 years agoIndicate correct help binding in status line
Zachary Yedidia [Sat, 28 May 2016 17:58:42 +0000 (13:58 -0400)]
Indicate correct help binding in status line

8 years agoAllow users to insert \t and \n in replace commands
Zachary Yedidia [Sat, 28 May 2016 15:40:22 +0000 (11:40 -0400)]
Allow users to insert \t and \n in replace commands

Fixes #144

8 years agoRematch every time a replacement is made
Zachary Yedidia [Sat, 28 May 2016 15:36:48 +0000 (11:36 -0400)]
Rematch every time a replacement is made

8 years agoRefactor and clean up
Zachary Yedidia [Sat, 28 May 2016 15:32:09 +0000 (11:32 -0400)]
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

8 years agoMerge pull request #139 from onodera-punpun/undo_option
Zachary Yedidia [Fri, 27 May 2016 22:05:37 +0000 (18:05 -0400)]
Merge pull request #139 from onodera-punpun/undo_option

make undothresthold a setting and add stackundo option

8 years agoFix typo
Camille [Fri, 27 May 2016 21:39:53 +0000 (23:39 +0200)]
Fix typo

8 years agoRemove undo options, make stackundo default behavior
Camille Scholtz [Fri, 27 May 2016 21:39:27 +0000 (23:39 +0200)]
Remove undo options, make stackundo default behavior

8 years agoAdd stackundo option
Camille Scholtz [Thu, 26 May 2016 17:36:59 +0000 (19:36 +0200)]
Add stackundo option

8 years agoFix highlighting and searching with unicode characters
Zachary Yedidia [Wed, 25 May 2016 15:49:04 +0000 (11:49 -0400)]
Fix highlighting and searching with unicode characters

Fixes #134
Fixes #138

8 years agoMake sure there is a selection before deleting it
Zachary Yedidia [Tue, 24 May 2016 21:46:46 +0000 (17:46 -0400)]
Make sure there is a selection before deleting it

Fixes #140

8 years agomake undothresthold a setting (part 2)
Camille Scholtz [Tue, 24 May 2016 19:40:05 +0000 (21:40 +0200)]
make undothresthold a setting (part 2)

8 years agomake undothresthold a setting
Camille Scholtz [Tue, 24 May 2016 19:38:46 +0000 (21:38 +0200)]
make undothresthold a setting

8 years agoDo a bounds check for charpos function
Zachary Yedidia [Tue, 24 May 2016 13:15:01 +0000 (09:15 -0400)]
Do a bounds check for charpos function

8 years agoFix crash
Zachary Yedidia [Mon, 23 May 2016 00:59:31 +0000 (20:59 -0400)]
Fix crash

8 years agoImprove the scrollmargin behavior at the end of the buffer
Zachary Yedidia [Sun, 22 May 2016 21:52:42 +0000 (17:52 -0400)]
Improve the scrollmargin behavior at the end of the buffer

8 years agoFix tabstospaces problem
Zachary Yedidia [Sun, 22 May 2016 19:47:28 +0000 (15:47 -0400)]
Fix tabstospaces problem

8 years agoRename to tabstospaces for consistency
Zachary Yedidia [Sun, 22 May 2016 19:35:57 +0000 (15:35 -0400)]
Rename to tabstospaces for consistency

8 years agoMerge pull request #130 from onodera-punpun/center_search
Zachary Yedidia [Sun, 22 May 2016 19:35:29 +0000 (15:35 -0400)]
Merge pull request #130 from onodera-punpun/center_search

Add a bit of "padding" to relocate.

8 years agoAdd ability to bind alt keys
Zachary Yedidia [Sun, 22 May 2016 19:33:40 +0000 (15:33 -0400)]
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...

8 years agoStore cursor and eventhandler in buffer instead of view
Zachary Yedidia [Sun, 22 May 2016 19:01:02 +0000 (15:01 -0400)]
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).

8 years agoRemove dollar sign
Camille Scholtz [Sat, 21 May 2016 22:28:29 +0000 (00:28 +0200)]
Remove dollar sign

8 years agoAdd Arch and CRUX installation guides
Camille Scholtz [Sat, 21 May 2016 22:25:49 +0000 (00:25 +0200)]
Add Arch and CRUX installation guides

8 years agosimplify scrollmargins
Camille Scholtz [Fri, 20 May 2016 18:06:01 +0000 (20:06 +0200)]
simplify scrollmargins

8 years agoMove scrollmargin declaration
Camille Scholtz [Fri, 20 May 2016 17:46:18 +0000 (19:46 +0200)]
Move scrollmargin declaration

8 years agoAdd scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make...
Camille Scholtz [Fri, 20 May 2016 17:44:16 +0000 (19:44 +0200)]
Add scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make help.md more consistent (replaced some spaces with tabs)

8 years agoAdd padding to relocate func (fixes weird scrolling behavior)
Camille Scholtz [Fri, 20 May 2016 15:43:26 +0000 (17:43 +0200)]
Add padding to relocate func (fixes weird scrolling behavior)

8 years agoAdd a bit of "padding" to relocate
Camille Scholtz [Fri, 20 May 2016 15:34:20 +0000 (17:34 +0200)]
Add a bit of "padding" to relocate

8 years agoMerge branch 'onodera-punpun-duplicate'
Zachary Yedidia [Fri, 20 May 2016 13:47:18 +0000 (09:47 -0400)]
Merge branch 'onodera-punpun-duplicate'

8 years agoMerge branch 'duplicate' of https://github.com/onodera-punpun/micro into onodera...
Zachary Yedidia [Fri, 20 May 2016 13:46:54 +0000 (09:46 -0400)]
Merge branch 'duplicate' of https://github.com/onodera-punpun/micro into onodera-punpun-duplicate

8 years agoFix ctrl modifiers
Zachary Yedidia [Fri, 20 May 2016 13:41:00 +0000 (09:41 -0400)]
Fix ctrl modifiers

8 years agoMerge
Zachary Yedidia [Fri, 20 May 2016 13:19:28 +0000 (09:19 -0400)]
Merge

8 years agoUse the new and updated version of tcell
Zachary Yedidia [Fri, 20 May 2016 13:19:25 +0000 (09:19 -0400)]
Use the new and updated version of tcell

8 years agoForgot a comma there
Camille Scholtz [Thu, 19 May 2016 22:06:09 +0000 (00:06 +0200)]
Forgot a comma there

8 years agoGive shortcuts more message feedback, add duplicate line option (fixes #124)
Camille Scholtz [Thu, 19 May 2016 22:04:53 +0000 (00:04 +0200)]
Give shortcuts more message feedback, add duplicate line option (fixes #124)

8 years agoAdd colorscheme to makefile syntax file
Zachary Yedidia [Thu, 19 May 2016 11:26:10 +0000 (07:26 -0400)]
Add colorscheme to makefile syntax file

Closes #125

8 years agoMerge pull request #123 from onodera-punpun/package_syntax
Zachary Yedidia [Wed, 18 May 2016 18:03:47 +0000 (14:03 -0400)]
Merge pull request #123 from onodera-punpun/package_syntax

Add some distro specific files to syntax

8 years agoAdd some distro specific files to syntax
Camille Scholtz [Wed, 18 May 2016 17:40:05 +0000 (19:40 +0200)]
Add some distro specific files to syntax

8 years agoMerge pull request #121 from onodera-punpun/case_insensitive
Zachary Yedidia [Wed, 18 May 2016 16:47:40 +0000 (12:47 -0400)]
Merge pull request #121 from onodera-punpun/case_insensitive

search case insensitive

8 years agoAdd ignorecase option
Camille Scholtz [Wed, 18 May 2016 16:44:32 +0000 (18:44 +0200)]
Add ignorecase option

8 years agosearch case insensitive
Camille Scholtz [Wed, 18 May 2016 16:11:11 +0000 (18:11 +0200)]
search case insensitive

8 years agoMerge pull request #120 from aerth/clearmsg
Zachary Yedidia [Wed, 18 May 2016 16:11:02 +0000 (12:11 -0400)]
Merge pull request #120 from aerth/clearmsg

add binding for ClearStatus

8 years agoadd binding for ClearStatus
aerth [Wed, 18 May 2016 14:18:14 +0000 (07:18 -0700)]
add binding for ClearStatus

8 years agoFix selection graphics for indentchar
Zachary Yedidia [Wed, 18 May 2016 13:33:49 +0000 (09:33 -0400)]
Fix selection graphics for indentchar

8 years agoFix ordering of selection on SelectAll
Zachary Yedidia [Wed, 18 May 2016 13:27:17 +0000 (09:27 -0400)]
Fix ordering of selection on SelectAll

Fixes #119

8 years agoFix small bug in Remove function in buffer
Zachary Yedidia [Tue, 17 May 2016 23:57:16 +0000 (19:57 -0400)]
Fix small bug in Remove function in buffer

8 years agoMerge pull request #115 from onodera-punpun/copypaste_feedback
Zachary Yedidia [Tue, 17 May 2016 18:54:13 +0000 (14:54 -0400)]
Merge pull request #115 from onodera-punpun/copypaste_feedback

Add copy feedback

8 years agoAdd copy feedback
Camille Scholtz [Tue, 17 May 2016 18:09:59 +0000 (20:09 +0200)]
Add copy feedback

8 years agoRemove some unnecessary code
Zachary Yedidia [Tue, 17 May 2016 17:39:27 +0000 (13:39 -0400)]
Remove some unnecessary code

Fixes #104

8 years agoMerge pull request #111 from onodera-punpun/fix_jump
Zachary Yedidia [Tue, 17 May 2016 17:38:59 +0000 (13:38 -0400)]
Merge pull request #111 from onodera-punpun/fix_jump

Fix jumping in rxvt-unicode when switching focus

8 years agoChange relocate from true to false
Camille [Tue, 17 May 2016 17:31:36 +0000 (19:31 +0200)]
Change relocate from true to false