Zachary Yedidia
76f80bf694
Merge pull request #293 from devoncarew/add_dart
...
add dart syntax highlighting
2016-09-03 12:53:39 -04:00
Devon Carew
a7b72f0e0e
add dart syntax highlighting
2016-09-03 09:16:52 -07:00
Zachary Yedidia
af22e0a567
Allow overwriting options with flags
...
Fixes #258
Also related to #233 , this commit also changes how +LINE,COL works. Now it is
micro -startpos LINE,COL file.
2016-09-03 11:26:01 -04:00
boombuler
98b6f63b70
fixes conditional replace
...
before this, conditional replace always replaces the first found
occurence of the match not the currenly selected.
Might also fix #269
2016-09-03 12:34:57 +02:00
boombuler
403a99d2ea
removed obsolete replace command preparations
2016-09-03 12:13:25 +02:00
boombuler
b2735d7b5b
use build-in functions to quote / unquote
2016-09-03 12:02:49 +02:00
boombuler
699ad316e5
removed old code
2016-09-03 08:18:47 +02:00
boombuler
8617ae5c1f
keep trailing space at commandline
2016-09-03 08:16:18 +02:00
boombuler
881f57b047
allow plugins to register autocomplete functions
2016-09-02 19:42:33 +02:00
Zachary Yedidia
b45fcf5bd7
Use json5 for config files
2016-09-02 11:12:16 -04:00
Zachary Yedidia
89c34ed8b3
Copy to primary clipboard on mouse selection
2016-09-02 10:44:32 -04:00
Zachary Yedidia
d9b8a04841
Add support for primary clipboard
2016-09-02 09:40:08 -04:00
Florian Sundermann
ccfe08bc60
allow command parameters to be quoted
...
this way FileCompletions could contain space runes without
breaking the parameter.
2016-09-02 13:44:22 +02:00
Florian Sundermann
2e3ee22aca
File autocomplete should now work on windows
2016-09-02 08:49:54 +02:00
Zachary Yedidia
226cf399ba
Merge pull request #271 from teryanik/master
...
Improvement highlight php syntax
2016-09-01 20:23:53 -04:00
cotne nazarashvili
d2254df062
improve json.micro
2016-09-02 03:59:36 +04:00
teryanik
3e83d29fb4
improvement highlight php syntax
2016-09-01 22:24:31 +03:00
Zachary Yedidia
fc2d9bb461
Merge pull request #233 from schollz/master
...
Flag to start at specified line/column number (#224 )
2016-08-31 16:39:30 -04:00
Zachary Yedidia
5458605618
Add "bubblegum" light colorscheme
...
Closes #255
2016-08-31 14:21:46 -04:00
Zachary Yedidia
031ed64305
Add colorscheme support for gentoo-ebuild
...
See #229
2016-08-31 12:12:23 -04:00
Zachary Yedidia
1be332a0f9
Merge
2016-08-31 12:00:28 -04:00
Zachary Yedidia
b9d4dbd5e0
Add colorscheme support for yaml
...
See #229
2016-08-31 11:59:43 -04:00
Zachary Yedidia
2e264b342a
Fix prompts not displaying because of infobar
2016-08-31 11:52:59 -04:00
Zachary Yedidia
4972db4bf6
Merge
2016-08-31 11:16:58 -04:00
Zachary Yedidia
b70db77c29
Add infobar option to disable the message line
...
Fixes #257
2016-08-31 11:16:22 -04:00
Zachary Yedidia
f8612d1572
Merge pull request #259 from handicraftsman/master
...
ASM & Micro fix
2016-08-31 10:53:14 -04:00
Nickolay
f9d0c563e4
Fixed Micro & ASM syntax files
2016-08-31 17:50:09 +03:00
Zachary Yedidia
3105205ab8
Use text from the paste event, not the clipboard
...
Closes #93
2016-08-31 10:47:31 -04:00
Zack Scholl
62ac9f79f2
Switched to +LINE,COL
...
Previously the flag was parsed for `-cursor LINE,COL`
However, emacs and nano both us `+LINE,COL` and this also makes
it easier to ignore the `+` as a filename.
2016-08-31 10:10:54 -04:00
Zachary Yedidia
a6d695f471
Merge
2016-08-31 08:51:44 -04:00
Zachary Yedidia
59d2fa81dd
Unselect for cursor movement actions
...
Fixes #250
2016-08-31 08:51:24 -04:00
Nickolay
c59b1ea387
Added .micro syntax theme
2016-08-31 15:19:45 +03:00
Zachary Yedidia
c661c65c8c
Update help to give quick instructions on quitting and saving
2016-08-30 21:29:41 -04:00
Zachary Yedidia
13da5ced15
Fix problem with linter.onSave calling view.Save
...
Fixes #246
2016-08-30 19:38:45 -04:00
Zachary Yedidia
b970b393f2
Add caddyfile to runtime
2016-08-30 19:32:26 -04:00
Zachary Yedidia
b6f5db3692
Add QuitAll action to close all splits and tabs at once
...
See #239
2016-08-30 17:38:46 -04:00
Zachary Yedidia
8bdaacaa5e
Switch splits on mouse *click* not drag
...
Fixes #240
2016-08-30 17:29:49 -04:00
Zachary Yedidia
c9ead25b1e
Merge
2016-08-30 17:26:05 -04:00
Zachary Yedidia
ddff950fcd
Check for filetype after saving an untitled buffer
...
Fixes #242
2016-08-30 17:25:30 -04:00
Nickolay
6e63472930
Whooops!
2016-08-31 00:08:37 +03:00
Nickolay
94397a90bd
Fully finished ASM syntax highlightig
2016-08-31 00:03:22 +03:00
Nickolay
9854fc712f
Added x87 instructions
2016-08-30 22:13:46 +03:00
Nickolay
99635d9491
Added x86 cpu support for assembly.
2016-08-30 21:51:30 +03:00
Zachary Yedidia
93361fe72d
Fix issue with settings.json
2016-08-30 11:32:23 -04:00
Zack Scholl
4499228cdb
Added flag to introduce cursor starting positions
2016-08-30 11:28:28 -04:00
Zachary Yedidia
ec9eab8a3e
Auto update settings.json if it contains 'null'
2016-08-30 11:19:51 -04:00
Zachary Yedidia
791a397d55
Fix problem with first-time creation of the settings file
...
Fixes #219
2016-08-30 09:45:05 -04:00
Zachary Yedidia
5df28c76e8
Add tutorial.md to help files
...
Fixes #218
2016-08-29 21:26:53 -04:00
Zachary Yedidia
19c7860f14
Update readme
2016-08-29 10:21:34 -04:00
Zachary Yedidia
fccec47ae5
Have CanClose use single letters for responses
...
Closes #184
2016-08-29 10:10:16 -04:00
Zachary Yedidia
eda08a994a
Make cursorline on by default
2016-08-29 09:20:48 -04:00
Zachary Yedidia
f8071af717
Fix bug with view.Center
...
Fixes #215
2016-08-29 09:16:24 -04:00
Zachary Yedidia
6ce8fe3ce1
Open an empty buffer if user opened a directory
...
Fixes #216
2016-08-29 09:01:54 -04:00
Zachary Yedidia
00e385b871
Add show command to show the value of an option
2016-08-28 21:48:03 -04:00
Zachary Yedidia
59b7555f01
Fix various small details and update readme
2016-08-28 16:28:28 -04:00
Zachary Yedidia
8cef0abf6a
Fix import error in tests
2016-08-28 13:45:38 -04:00
Zachary Yedidia
56224c9184
Minor update to zenburn line number colors
2016-08-28 13:13:01 -04:00
Zachary Yedidia
40523871fa
Update runtime
2016-08-28 13:09:37 -04:00
Zachary Yedidia
90e0a2ec1a
Rename 'default' colorscheme to 'simple'
...
This commit also adds an additional name for zenburn as 'default'
so you can refer to zenburn as 'default' or as 'zenburn'
2016-08-28 13:07:47 -04:00
Zachary Yedidia
aa9dbdde3e
Improve tab completion in command mode
...
Pressing tab when all suggestions start with the same substring
will insert that substring (this is how bash autocompletion works).
2016-08-28 13:05:07 -04:00
Zachary Yedidia
da7bc997ff
Update docs and makefile
2016-08-27 22:00:56 -04:00
Zachary Yedidia
1260dcc5ee
Add some more information to -version flag
2016-08-27 20:03:43 -04:00
Zachary Yedidia
2de42bcf99
Make zenburn the default colorscheme
...
This commit also adds better support for constant.number in the
syntax files.
2016-08-27 17:10:26 -04:00
Zachary Yedidia
e0074c881c
Minor update to zenburn
2016-08-27 16:13:28 -04:00
Zachary Yedidia
1a5e90c8a2
Add zenburn colorscheme
...
Closes #214
2016-08-27 16:09:30 -04:00
Zachary Yedidia
19bb9c7d50
Add tutorial help file
2016-08-26 14:38:20 -04:00
Zachary Yedidia
b4e470b6e2
Add support for making buffer local options in settings.json
2016-08-25 20:15:58 -04:00
Zachary Yedidia
e634b4e180
Fix bug with init.lua
2016-08-25 17:29:58 -04:00
Zachary Yedidia
acc03e9707
Update docs and add some comments
2016-08-25 17:24:13 -04:00
Zachary Yedidia
d6da2dfeca
Pass the view into plugin callbacks
2016-08-25 16:35:03 -04:00
Zachary Yedidia
ec0833b09c
Update plugins for local settings
2016-08-25 16:01:42 -04:00
Zachary Yedidia
1a9123630b
Add support for local or global only settings
2016-08-25 15:48:02 -04:00
Zachary Yedidia
348922e1f2
Add filetype as an option
...
Still in progress
2016-08-25 15:48:02 -04:00
Zachary Yedidia
8803d93872
Make all filetype names lowercase
...
This may be a breaking change if you are using a plugin that
checks the filetype. All the default plugins are now updated,
just make the filetype you were checking for previously all
lowercase.
2016-08-25 15:48:02 -04:00
Zachary Yedidia
261748bd56
Add local settings for each buffer
2016-08-25 15:47:26 -04:00
Zachary Yedidia
60b84c7aba
Minor fixes and update runtime
2016-08-25 15:47:16 -04:00
Zachary Yedidia
0711c29c0a
Add onBufferOpen plugin callback
2016-08-24 17:03:02 -07:00
Zachary Yedidia
dbdfef632e
Add center action to center the view on the cursor
2016-08-24 15:48:11 -07:00
Zachary Yedidia
b818011715
Relocate on startup
2016-08-24 14:44:29 -07:00
Zachary Yedidia
d6a7f6291a
Plugin onAction return value should determine relocate
2016-08-24 10:02:06 -07:00
Zachary Yedidia
24076e7dff
Auto indent on paste
...
Fixes #204
2016-08-23 14:48:28 -07:00
Zachary Yedidia
78e2445e43
Don't pad suggestions
2016-08-22 11:45:50 -07:00
Zachary Yedidia
bfbba972d8
Fix gutter message overwriting a prompt
2016-08-22 10:13:14 -07:00
Zachary Yedidia
760d709c34
Remove auto indented spaces if the line is empty
2016-08-22 10:04:23 -07:00
Zachary Yedidia
c340e6d48d
Add gruvbox colorscheme
2016-08-21 14:40:39 -07:00
Zachary Yedidia
ca4be706ac
Small fix to redraw location
2016-08-21 11:31:26 -07:00
Zachary Yedidia
8f51fe84ae
Update readme
2016-08-20 13:02:19 -07:00
Zachary Yedidia
e3c2335c14
Slight additional improvement to word movement
2016-08-20 12:31:52 -07:00
Zachary Yedidia
198b1b8e79
Improve cursor word movement
...
The definition of a "word" is a bit more subtle now. Before it would
just move the cursor until a whitespace was found. Now it will stop
at non word characters as well.
2016-08-20 12:26:54 -07:00
Zachary Yedidia
9db4e640a0
Add pasting in command mode
2016-08-20 10:35:57 -07:00
Zachary Yedidia
f9e8a2426b
Add support for init.lua file in ~/.config/micro
2016-08-20 10:22:28 -07:00
Zachary Yedidia
f9cb99b35f
Go plugin should disable tabstospaces if the file is go
2016-08-19 18:47:37 -07:00
Zachary Yedidia
d409c3a031
Fix minor issue with autoclose
2016-08-19 15:24:42 -07:00
Zachary Yedidia
62c359e5c1
Improve autoclose plugin auto tabbing
2016-08-19 15:14:34 -07:00
Zachary Yedidia
39645d4bfd
Move cursor with search selection
...
Fixes #212
2016-08-18 19:09:48 -07:00
Zachary Yedidia
eb27d65d24
Update runtime
2016-08-18 11:38:19 -07:00
Zachary Yedidia
f790e16883
Fix minor autoindent bug
2016-08-18 11:31:09 -07:00
Zachary Yedidia
8d230d2038
Fix some issues with unicode handling
...
There were unicode issues with prompts, search, and syntax highlighting,
which are now fixed.
2016-08-18 08:14:33 -07:00
Zachary Yedidia
e4b6a931de
Make setting options global
2016-08-17 20:00:38 -07:00
Zachary Yedidia
7474fdc499
Fix statusline suggestion style
2016-08-17 15:22:22 -04:00
Zachary Yedidia
fd68dbd852
Add visual indicator for autocomplete suggestions
2016-08-17 14:37:30 -04:00
Zachary Yedidia
d17cc0f628
Add boolean option to actions to disable the lua callback
2016-08-17 14:16:27 -04:00
Zachary Yedidia
8a58506c72
Add much better autocompletion for commands
2016-08-17 13:49:37 -04:00
Zachary Yedidia
932370f597
Add current-line-number colors to all colorschemes
2016-08-17 12:49:11 -04:00
Zachary Yedidia
70c3d42f9c
Update runtime.go
2016-08-17 11:59:38 -04:00
Zachary Yedidia
6777419dc4
Don't open a new split if help is already open
2016-08-17 11:59:37 -04:00
Zachary Yedidia
4a0c48587a
Split help into multiple files and add help command
2016-08-17 11:59:37 -04:00
Zachary Yedidia
cb79e08f19
Minor fix to current line num style
2016-08-17 11:59:29 -04:00
Zachary Yedidia
1e26aaed3c
Merge pull request #209 from onodera-punpun/coloredline
...
Add colored current line number option
2016-08-16 22:03:07 -04:00
Zachary Yedidia
563484ffc9
Clean up go plugin
2016-08-16 13:52:42 -04:00
Zachary Yedidia
b42aba05a0
Fix recursive issue with go plugin
2016-08-16 13:46:33 -04:00
Zachary Yedidia
ed31d37e74
Change plugin callbacks to not only happen when a keybinding triggers the action
2016-08-16 11:43:36 -04:00
Zachary Yedidia
de9567322b
Rebind Home and End to StartOfLine and EndOfLine
...
This commit changes the default keybindings for Home and End. It
also changes the InsertEnter action to InsertNewline (a better name)
although InsertEnter is still valid for backwards compatibility.
Closes #206
2016-08-16 10:55:04 -04:00
Camille Scholtz
e38e1c9dff
Add colored current line number option
2016-08-15 22:35:40 +02:00
Zachary Yedidia
899b6a4a24
User plugins should replace default plugins
...
Fixes #208
2016-08-14 15:29:02 -04:00
Zachary Yedidia
632e4312d5
Syntax highlighting optimization
2016-08-13 21:28:52 -04:00
Zachary Yedidia
28897c01ea
Add HandleCommand and HandleShellCommand to plugin api
2016-08-13 11:44:30 -04:00
Zachary Yedidia
1b9ae5706e
Minor update
2016-08-11 17:35:40 -04:00
Zachary Yedidia
096a403d52
Set parents correctly on split nodes
2016-08-11 16:59:06 -04:00
Zachary Yedidia
7c13dee33d
Small fix to splits
2016-08-11 16:52:50 -04:00
Zachary Yedidia
61536326ca
Fix statusline and tabbar offsets
2016-08-11 13:50:59 -04:00
Zachary Yedidia
bd55c5f834
Add ability to delete splits
2016-08-11 11:27:32 -04:00
Zachary Yedidia
cbbe312762
Add split_tree and ability to create splits
2016-08-11 10:45:35 -04:00
Zachary Yedidia
2cbd9428aa
Remove current implementation of splits
2016-08-10 15:28:23 -04:00
Zachary Yedidia
5a005e36b6
Small fix to OutdentSelection
2016-08-08 13:11:34 -05:00
Zachary Yedidia
c409f1cc07
Bind OutdentSelection to ShiftTab (Backtab)
...
I was under the impression that tcell couldn't detect shift tab
key presses, but this was incorrect. It turns out that tcell just
calls it backtab. This commit makes backtab the default binding
for OutdentSelection.
See #203
2016-08-07 21:41:12 -04:00
Zachary Yedidia
586a66b3a4
Bindings for IndentSelection and OutdentSelection
...
Tab is now bound to both IndentSelection and InsertTab.
There is currently no binding for OutdentSelection (the user can
bind that to their liking). Hopefully in the future it can be bound
to shift-tab but tcell does currently support that.
Closes #203
2016-08-07 19:45:35 -04:00
Zachary Yedidia
5da6b31b9c
Pressing tab on a selection indents the selection
...
See #203
2016-08-02 18:30:36 -04:00
Zachary Yedidia
204a763dff
Remove backspace prompt cancelation
...
Fixes #202
2016-08-02 09:45:41 -04:00
Zachary Yedidia
5444ad50c4
Add gololang to pre installed syntax files
2016-07-30 16:01:46 -04:00
Zachary Yedidia
76a9697a80
Use file completion for command mode
2016-07-24 16:38:37 -04:00
Zachary Yedidia
431eb12c96
Add tab command to open a file in a new tab
2016-07-24 16:29:03 -04:00
Zachary Yedidia
ddcebe4946
Fix issue with autoclose plugin
2016-07-24 16:19:41 -04:00
Zachary Yedidia
ba33802525
Use my fork of clipboard
2016-07-24 10:51:08 -04:00
Zachary Yedidia
cfd97b21ad
Fix small horizontal scrolling glitch
2016-07-23 11:58:28 -04:00
Zachary Yedidia
c7b84a7eaa
Rehighlight a split as soon as it is opened
...
I think this might fix the problem in #198 , but I can't seemd to
reproduce it.
2016-07-19 20:15:23 -04:00
Zachary Yedidia
e890c878f3
Add separator characters between splits
...
Fixes #196
2016-07-15 17:38:42 -04:00
Zachary Yedidia
eba501e095
Highlight plist as XML
...
See #197
2016-07-15 17:29:36 -04:00
Zachary Yedidia
47940d3ffd
Recompile runtime.go
...
Fixes #195
2016-07-14 15:39:15 -04:00
Zachary Yedidia
92c28d81b9
Add preAction plugin callbacks which can return false to cancel the action
2016-07-14 13:53:38 -04:00
Zachary Yedidia
1c077247f6
Merge
2016-07-14 13:01:10 -04:00
Zachary Yedidia
02f78edaf9
Open help in a separate split
2016-07-14 13:01:02 -04:00
Timon Böhler
ce5a867286
Changed Python syntax file to use Go's regex for matching string literals (which also works for empty strings)
2016-07-13 21:03:16 +02:00
Zachary Yedidia
abd36649c9
Update runtime and syntax file listing
2016-07-12 09:12:07 -04:00
Zachary Yedidia
7ae0310863
Fix draw ordering
2016-07-11 19:10:29 -04:00
Zachary Yedidia
a15c6ede81
Rewrite view display function
2016-07-11 15:35:50 -04:00
Zachary Yedidia
f2ec82520a
Separate bindings and actions into two files
2016-07-10 13:30:28 -04:00
Zachary Yedidia
50e22dafc4
Add some lines back
2016-07-10 13:27:28 -04:00
Zachary Yedidia
8c0983a36c
Add some more comments
2016-07-10 13:26:24 -04:00
Zachary Yedidia
6489f4b6e8
Merge pull request #185 from zyedidia/splits
...
Splits
2016-07-09 11:41:53 -04:00
Zachary Yedidia
271b127f79
Fix small glitch with splits
2016-07-09 11:29:22 -04:00
Zachary Yedidia
f01dc89171
Fix extra line being added with odd heights
2016-07-05 18:46:50 -04:00
Zachary Yedidia
3d3b76a31c
Change default colorscheme to monokai
...
The monokai-tc colorscheme has been renamed to plain monokai and has
been made the default colorscheme. It is still a true color colorscheme,
but the automatic 256 color approximation is very good so it can be used
just fine in terminals which do not support true color.
If your terminal only supports 16 colors, used the 'default'
colorscheme.
2016-07-05 18:34:51 -04:00
Zachary Yedidia
3089967546
Add binding to move to next split (default binding: CtrlW)
2016-07-02 17:41:23 -04:00
Zachary Yedidia
4a15a1d3c8
Add the ability to close splits and change splits using the mouse
...
This commits adds split navigation with the mouse and the ability to
close splits. You can now also open a file directly with the hsplit
and vsplit commands.
2016-07-02 17:41:23 -04:00
Zachary Yedidia
d2b11c2f98
Fix tabbar offset with splits
2016-07-02 17:41:23 -04:00
Zachary Yedidia
d419e65a03
Make sure splits can't draw in other splits
2016-07-02 17:41:23 -04:00
Zachary Yedidia
bcbef1c633
Add horizontal splits
2016-07-02 17:41:23 -04:00
Zachary Yedidia
7e0286b621
Fix redrawing for splits
2016-07-02 17:41:23 -04:00
Zachary Yedidia
9b9ae89e59
Quick first try at vertical splits
2016-07-02 17:41:23 -04:00
Zachary Yedidia
cb238db307
Merge pull request #189 from onodera-punpun/sudosave
...
bindings:go: Only display saved message if actually saved
2016-06-30 11:08:12 -04:00
Camille Scholtz
151df0d2aa
bindings:go: Only display saved message if actually saved
2016-06-30 16:49:32 +02:00
Zachary Yedidia
2002cb6579
Wrap around when using NextTab and PreviousTab
...
Fixes #188
2016-06-28 21:29:46 -04:00
Zachary Yedidia
aa8a329745
Fix JumpLine range
...
Fixes #187
2016-06-28 21:26:19 -04:00
Zachary Yedidia
22257df9a4
Fix replace cursor relocation
2016-06-28 15:06:42 -04:00
Camille Scholtz
b0ef071e94
command.go: Simplify and prettify replace feedback
2016-06-28 19:55:29 +02:00
Camille Scholtz
24b01776b3
command.go: Add some feedback to replace
2016-06-28 19:49:26 +02:00
Zachary Yedidia
cc9dd00948
Add string group to syntax files
...
This commit adds the string group (constant.string) to valid strings
in all the syntax files that support colorschemes (see the readme in
the runtime/syntax directory).
Fixes #178
2016-06-25 19:20:13 -04:00
Zachary Yedidia
c51c185be6
Add feedback to save with sudo
...
Fixes #183
2016-06-25 13:42:21 -04:00
Zachary Yedidia
91dd06fd9e
Add new colorschemes to runtime
2016-06-23 08:39:26 -04:00
Zachary Yedidia
e6adc173f3
Fix issue with autoclose plugin
2016-06-22 21:03:40 -04:00
Zachary Yedidia
dbeb99bb6b
Colorscheme group inheritance
...
With this commit, the syntax files can define groups that are subsets of
other groups, for example constant.string. This is so that colorschemes
can be more accurate, possibly highlighting strings differently than
numbers for example.
See #176 . This doesn't fully close that issue yet because the string
group still needs to be added to all strings in the syntax files.
2016-06-22 18:51:36 -04:00
Zachary Yedidia
6665834cca
Add autoclose plugin to handle autoclose for brackets, quotes etc...
...
The plugin adds an option `autoclose` to configure whether or not you
would like quotes, brackets etc... to be automatically closed. The
option is enabled by default.
Closes #176
2016-06-22 13:54:42 -04:00
Zachary Yedidia
47efea6501
Add onRune(r string) callback for plugins
...
Define this function in a plugin (which takes one argument) to be
notified whenever a character is typed, and the character will be passed
as the argument.
2016-06-21 17:57:25 -04:00
Zachary Yedidia
d32d373bff
Only copy messages if there is a mouse left click (not any mouse event)
2016-06-21 17:54:36 -04:00
Zachary Yedidia
77b6c2c486
Auto prefix for plugin functions
...
YOu no longer have to prefix all functions in a plugin with the plugin
name (linter_onSave). This will now be done automatically using lua's
setfenv. When passing a function as a callback to a editor function,
make sure to prefix the plugin name (linter.onExit, or go.goimports) so
that micro knows which plugin to call the function from.
2016-06-21 17:49:57 -04:00
Zachary Yedidia
c1dadbd0c7
Fix mouse controls
...
Fixes #173
2016-06-19 09:02:47 -04:00
Zachary Yedidia
8be0f9c529
Clicking on messages will copy them to the clipboard
...
Fixes #172
2016-06-17 11:24:54 -04:00
Zachary Yedidia
d2277a376a
Add support for job control
...
This commit adds support for job control (running processes
asynchronously from plugins) with the JobStart, JobSend, and JobStop
functions (copying neovim's job control).
This commit also makes the linter plugin work asynchronously, so the
editor won't be frozen while the linter checks your code for errors.
2016-06-15 11:19:00 -04:00
Zachary Yedidia
4a860625af
Also allow ModShift to be on for windows terminals
...
Fixes #165
2016-06-11 19:41:37 -04:00
Zachary Yedidia
553b3d80c4
Fix diff remove problem in ApplyDiff
...
The location counter was being updated when there was a removal in
the text but it shouldn't be.
Fixes #163
2016-06-11 11:23:05 -04:00
Zachary Yedidia
cdfea45a49
Fix cursor line in true color colorschemes
...
Ref #171
2016-06-09 16:00:43 -04:00
Zachary Yedidia
f3f14193c2
Fix autocompletion using a slash
2016-06-09 13:36:16 -04:00
Zachary Yedidia
e2079ac88e
Add file completion to OpenFile (CtrlO) with tab
2016-06-09 10:03:50 -04:00
Zachary Yedidia
1f89b41070
Fix mouse coordinates when tabbar is open
...
Fixes #170
2016-06-09 09:29:23 -04:00
Zachary Yedidia
1295b877e3
Fix tabbar bug
...
Fixes #169
2016-06-08 21:07:40 -04:00
Zachary Yedidia
860bc248c4
Fix resizing of tabs opened with the command line
2016-06-08 19:43:05 -04:00
Zachary Yedidia
2c73e1c043
Add default bindings for PreviousTab and NextTab
2016-06-08 18:48:59 -04:00
Zachary Yedidia
a79e964cb6
Make tabs respond to mouse events
2016-06-08 17:47:48 -04:00
Zachary Yedidia
059a5c3b89
Resize the view correctly when there is only one tab left
2016-06-08 14:38:15 -04:00
Zachary Yedidia
57f769c9a1
Don't display the tab bar if only one tab is open
2016-06-08 13:29:24 -04:00
Zachary Yedidia
40affa56c7
Create tab struct and reorganize tab bar
2016-06-08 13:26:50 -04:00
Zachary Yedidia
5f19f69681
Tab bar and support for opening multiple files
2016-06-08 12:19:36 -04:00
Zachary Yedidia
3080e32a8f
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
2016-06-08 10:21:27 -04:00
Zachary Yedidia
bd0fa7b6c2
Add DeleteLine binding
...
Ref #135
2016-06-07 21:47:34 -04:00
Zachary Yedidia
3deee51537
Fix bug with pasting with new Location system
2016-06-07 18:24:13 -04:00
Zachary Yedidia
d72da1eb5c
Add more descriptive error message if there is an error with gob
2016-06-07 17:03:05 -04:00
Zachary Yedidia
8d184c1870
Fix glitch with undo
2016-06-07 16:10:39 -04:00
Zachary Yedidia
f0b6725000
Minor fix
2016-06-07 14:45:37 -04:00
Zachary Yedidia
f0faeb3a3e
Fix bug with Move()
2016-06-07 12:31:02 -04:00
Zachary Yedidia
72f5808025
Replace rope with lineArray
2016-06-07 11:43:28 -04:00
Zachary Yedidia
d6307b2718
Proper support for double width characters
...
Fixes #99
2016-06-04 16:25:11 -04:00
Zachary Yedidia
852bd2c904
Fix redraw bug
...
Fixes #162
2016-06-04 16:00:53 -04:00
Zachary Yedidia
3d62a1baa0
Don't display cursorline if there is a selection
2016-06-02 13:15:47 -04:00
Zachary Yedidia
7e218562a3
Remove "Applying Diff" message on reopen
...
Fixes #160
2016-06-02 13:05:57 -04:00
Zachary Yedidia
e6c6c7f47d
Merge
2016-06-02 13:04:11 -04:00
Zachary Yedidia
1d52ef6c54
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
2016-06-02 13:01:13 -04:00
JT Olds
646cdd6a9f
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",
2016-06-01 19:43:30 -06:00
Zachary Yedidia
9e96623725
Small improvement to line selection
2016-06-01 18:00:49 -04:00
Zachary Yedidia
742370646f
Add cursorline option
2016-06-01 10:05:17 -04:00
Zachary Yedidia
5e83b2c99a
Fix redraw glitch
2016-06-01 07:45:01 -04:00
Zachary Yedidia
cd6389c49e
Make CursorPageUp and CursorPageDown default
...
This commit also fixes the documentation for PageUp and PageDown.
See #149
2016-05-31 19:45:19 -04:00
Zachary Yedidia
312595ba4f
Merge
2016-05-31 19:25:35 -04:00
Zachary Yedidia
64c0446b8d
Fix redraw glitch
2016-05-31 19:25:32 -04:00
JT Olds
8bd23a575f
Add CursorPageUp and CursorPageDown actions
2016-05-31 16:02:42 -06:00
Zachary Yedidia
74cac8291a
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.
2016-05-31 17:23:08 -04:00
Zachary Yedidia
ef17306f8b
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
2016-05-30 21:01:40 -04:00
Zachary Yedidia
d4caf4510c
Fix bug with on reopen
2016-05-30 18:22:10 -04:00
Zachary Yedidia
b312e7c9ad
Refactor ReOpen function
2016-05-30 17:48:33 -04:00
Zachary Yedidia
7adcb13c08
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`.
2016-05-30 13:38:50 -04:00
Zachary Yedidia
68189fd406
Add ability to bind lua functions defined in plugins
2016-05-30 09:12:04 -04:00
Zachary Yedidia
e3e50dd6f6
Add DeleteWordRight and DeleteWordLeft bindings
2016-05-29 19:09:27 -04:00
Zachary Yedidia
19717dd3ae
Check if the file being edited has been modified by an external program
2016-05-29 17:58:06 -04:00
Zachary Yedidia
ee9f2a3d9c
Add persistent undo as the option
2016-05-29 11:02:56 -04:00
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
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
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