Zachary Yedidia
d94b81b8e6
Synchronize undo and redo chunks
...
Fixes #1372
Fxies #1471
2020-02-02 00:14:56 -05:00
Zachary Yedidia
f731e422ea
Improve lua interface
2020-01-31 14:21:27 -05:00
Zachary Yedidia
e3131a0779
Add text event callback
2020-01-31 00:56:15 -05:00
Zachary Yedidia
953f5a0eff
Highlight in parallel
2020-01-28 20:54:14 -05:00
Zachary Yedidia
477bdb3dc8
Empty highlighting for unknown filetypes
2020-01-28 18:34:44 -05:00
Zachary Yedidia
d74f40882d
Don't rehighlight if there are no modifications
2020-01-28 17:15:02 -05:00
Zachary Yedidia
97ee344268
Fix some issues with syntax highlighting regions
...
Fixes #1464
2020-01-20 23:43:47 -05:00
Zachary Yedidia
b3e40a2644
Make debug mode flag, plugins can access logbuf
2020-01-15 22:25:08 -05:00
Zachary Yedidia
17f0eb80cd
Readonly should only apply to default buffers
...
Ref #1298
2020-01-15 20:09:17 -05:00
Zachary Yedidia
6c3814dfac
Better message for gob error
2020-01-05 12:45:27 -05:00
Bonnie
c2c0325384
Fix #1383 : "Save with Sudo" rewrite ( #1424 )
...
* Rewrite save with sudo (Fixes #1383 )
* Combine overrideFile & overrideFileAsRoot into 1 function
2020-01-03 17:39:12 -05:00
Zachary Yedidia
ddc8bf455e
Set filetype to 'off' to disable completely
...
Ref #1427
2020-01-02 19:00:42 -05:00
Zachary Yedidia
0bf54ff0e7
Don't crash if only file to open is directory
2020-01-02 15:25:07 -05:00
Zachary Yedidia
9333354fc8
Fix save with sudo on mac
2020-01-02 01:25:00 -05:00
Zachary Yedidia
0301e3539e
Use upstream updated zyedidia tcell
2019-12-31 20:15:45 -05:00
Zachary Yedidia
6632ab0a77
Switch to gdamore/tcell
2019-12-31 17:53:16 -05:00
Zachary Yedidia
3b66a3364c
Fix some formatting
2019-12-29 22:02:14 -05:00
Zachary Yedidia
bd83c6a8a9
Remove detect requirement and detect in jinja file
...
Ref #1415
2019-12-28 22:27:44 -05:00
Zachary Yedidia
5b52b8a60f
Support includes
2019-12-28 21:57:03 -05:00
Zachary Yedidia
a61616d79e
More efficient loading for default syntax files
...
This change introduces header files for syntax files. The header
files only contain the filetype and detection info and can be
parsed much faster than parsing a full yaml file. To determine
which filetype a file is, only scanning the headers is necessary
and afterwards only one yaml file needs to be parsed. Use the
make_headers.go file to generate the header files. Micro expects
that all default syntax files will have header files and that
custom user syntax files may or may not have them. Resolving
includes within syntax has not yet been implemented. This
optimization improves startup time.
Ref #1427
2019-12-28 21:26:22 -05:00
Zachary Yedidia
6681387b47
Support for file reloading if changed externally
2019-12-26 17:59:23 -05:00
Zachary Yedidia
8570ff9a8c
Remove autosave option
...
With the new backup option, the autosave option is no longer useful.
Since it never really worked well in the first place, it has been
removed.
Closes #1420
2019-12-26 14:35:48 -05:00
Zachary Yedidia
b527e4fe42
Reoragnize slightly
2019-12-25 17:05:11 -05:00
Zachary Yedidia
3f22501b1a
Improved save with sudo
2019-12-25 17:05:11 -05:00
Zachary Yedidia
fc706bc404
No backups for no name files
2019-12-25 17:05:11 -05:00
Zachary Yedidia
c4d5d7c195
Better backup behavior
2019-12-25 17:05:11 -05:00
Zachary Yedidia
e42cf3663b
Backup support
2019-12-25 17:05:11 -05:00
Zachary Yedidia
a86a6c464e
Start implementing backup system
2019-12-25 17:05:11 -05:00
Zachary Yedidia
6f6b263d10
Add some plugin functions
2019-12-25 17:05:11 -05:00
Zachary Yedidia
3d40e91690
Add log and plugin list command
2019-12-25 17:05:11 -05:00
Zachary Yedidia
d1e713ce08
Add better matchbrace
2019-12-25 17:05:11 -05:00
Zachary Yedidia
c0293b5d0e
Add autosave option
2019-12-25 17:05:11 -05:00
Zachary Yedidia
ccb5904591
Add mkparents option
2019-12-25 17:05:11 -05:00
Zachary Yedidia
9eed8bc247
Remove local settings
2019-12-25 17:05:11 -05:00
Zachary Yedidia
4027081e0e
Add linter plugin support
2019-12-25 17:05:10 -05:00
Zachary Yedidia
e3ae38e54a
Autoclose plugin support
2019-12-25 17:05:10 -05:00
Zachary Yedidia
55e33badd0
Add readonly option
2019-12-25 17:05:10 -05:00
Zachary Yedidia
bf15f5c585
Support filetype option as command line option
2019-12-25 17:05:10 -05:00
Zachary Yedidia
809b95d290
Add reset command and statusline format string options
2019-12-25 17:05:10 -05:00
Zachary Yedidia
8d85cae4c0
Add autocomplete
2019-12-25 17:05:10 -05:00
Zachary Yedidia
7cd5024e34
Small fixes
2019-12-25 17:05:10 -05:00
Zachary Yedidia
aa305c2676
Implement buffer opening at a location
2019-12-25 17:05:10 -05:00
Zachary Yedidia
aa774164a7
Fix relocate bug
2019-12-25 17:05:10 -05:00
Zachary Yedidia
c93d7a1b35
Add hidehelp support
2019-12-25 17:05:10 -05:00
Zachary Yedidia
adfeaf52ba
Fix serialization
2019-12-25 17:05:10 -05:00
Zachary Yedidia
f5f4154d4c
Fix some search bugs
2019-12-25 17:05:10 -05:00
Zachary Yedidia
3335f377a9
Some plugin callbacks
2019-12-25 17:05:10 -05:00
Zachary Yedidia
0612af1590
Change project layout and use go.mod
2019-12-25 17:05:10 -05:00