Zachary Yedidia
6a1b8f4a4f
Add option to clean unused settings and other parts of config
2020-02-02 15:30:06 -05:00
Zachary Yedidia
dba8ef2fdd
Use namespaces for plugin options
2020-02-02 14:35:30 -05:00
Zachary Yedidia
b0624cb66e
Add support for plugin manager within micro
2020-02-02 14:20:39 -05:00
Zachary Yedidia
09ea82c97e
Disable current line num style if no cursorline
2020-02-02 00:34:28 -05:00
Zachary Yedidia
d94b81b8e6
Synchronize undo and redo chunks
...
Fixes #1372
Fxies #1471
2020-02-02 00:14:56 -05:00
Zachary Yedidia
bcb1947a0a
Add plugin manager
2020-02-01 23:54:38 -05:00
Zachary Yedidia
b0b5d7b392
Add CurPane and CurTab functions for plugins
2020-02-01 12:20:08 -05:00
Zachary Yedidia
2598d8ad70
Update colorschemes and add new ones
...
This commit updates the colorschemes and adds some new ones:
* gotham (https://github.com/novln/micro-gotham-colors )
* monokai-dark (https://github.com/Theodus/micro-monokai-dark )
* one-dark (https://github.com/joseluisq/micro-one-dark )
* sunny-day (https://github.com/dwwmmn/micro-sunny-day )
2020-01-31 15:05:55 -05:00
Zachary Yedidia
f731e422ea
Improve lua interface
2020-01-31 14:21:27 -05:00
Zachary Yedidia
d326a9cddd
Merge
2020-01-31 00:56:20 -05:00
Zachary Yedidia
e3131a0779
Add text event callback
2020-01-31 00:56:15 -05:00
Zachary Yedidia
46c5a81b0d
Fix callback cancelation
2020-01-30 18:04:17 -05:00
Zachary Yedidia
59146cabb1
Add callback option to linter
2020-01-30 18:00:17 -05:00
Zachary Yedidia
35e3bddea0
Modify linter and add plugin cmd
2020-01-30 17:51:04 -05:00
Zachary Yedidia
016b8dcc4c
Do not add non-plugin directories in plug/
2020-01-28 23:49:51 -05:00
Zachary Yedidia
03228762d4
Don't call plugin if nil
2020-01-28 22:06:58 -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
866b3c9238
Resize tabbar properly
...
Ref #1467
2020-01-26 00:44:34 -05:00
Zachary Yedidia
3252324d24
Don't indent empty lines
...
Fixes #1472
2020-01-26 00:40:40 -05:00
Zachary Yedidia
8e7a016917
Tab horizontal scrolling should not be negative
...
Fixes #1467
2020-01-25 13:17:13 -05:00
Zachary Yedidia
cf41a587a3
Split the actions StartOfLine and StartOfText
...
The default keybindings now use StartOfText which moves the cursor
to the start of the text on the current line instead of the actual
start of the line (if the line begins with whitespace).
Fixes #1468
2020-01-25 13:02:13 -05:00
Zachary Yedidia
97ee344268
Fix some issues with syntax highlighting regions
...
Fixes #1464
2020-01-20 23:43:47 -05:00
Zachary Yedidia
b658f94e5a
Change ctrl-arrow default binding for non-Mac OSes
...
On non-Mac operating systems, the default for CtrlLeft/CtrlRight
is now WordLeft and WordRight instead of moving the cursor to the
start and end of lines (now rebound to Alt-Left/Right by default).
Default keybindings are unchanged on Mac.
Fixes #1465
2020-01-20 22:35:00 -05:00
Zachary Yedidia
0abe427026
Make readonly and filetype local-only
2020-01-20 22:03:32 -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
Serge Voilokov
8d373cde6e
Add golang keywords ( #1455 )
...
* Add golang keywords
* Update runtime
2020-01-06 12:06:44 -05:00
Zachary Yedidia
6a465500bc
Properly handle empty args with new shellquote lib
...
Fixes #1454
2020-01-06 11:38:21 -05:00
Zachary Yedidia
c7f36f9480
Don't indent softwrap if ruler is off
...
Ref #1450
2020-01-05 20:32:29 -05:00
Zachary Yedidia
955bde4abc
Minor view fix
2020-01-05 15:02:52 -05:00
Zachary Yedidia
6c3814dfac
Better message for gob error
2020-01-05 12:45:27 -05:00
Zachary Yedidia
d234e9ec41
Add cycleautocompleteback action
2020-01-04 15:51:15 -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
dfb6bc0312
Fix save callback issue
2020-01-03 17:38:50 -05:00
Zachary Yedidia
ddc8bf455e
Set filetype to 'off' to disable completely
...
Ref #1427
2020-01-02 19:00:42 -05:00
Zachary Yedidia
2855ae204c
Replace shellwords with shellquote
2020-01-02 18:30:51 -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
50ff45c213
Some documentation updates
2020-01-02 15:10:28 -05:00
Zachary Yedidia
eb2b546600
Merge
2020-01-02 12:43:52 -05:00
Zachary Yedidia
dc4da37908
Add "paste" option to enable aggressive pasting
...
Ref #1043
2020-01-02 12:42:39 -05:00
Zachary Yedidia
9333354fc8
Fix save with sudo on mac
2020-01-02 01:25:00 -05:00
Zachary Yedidia
b557ed2221
Fix PluginAddRuntimeFile
2020-01-02 01:18:16 -05:00
Zachary Yedidia
6d0128059b
Finish support for a fake cursor
2020-01-01 22:40:51 -05:00
Zachary Yedidia
d6dd838abd
Better support for fake cursor
2020-01-01 21:29:18 -05:00
Zachary Yedidia
d9e262c394
Use fake cursor for windows
2020-01-01 20:47:05 -05:00
Zachary Yedidia
e98be1a1e5
Update deps
2020-01-01 20:44:45 -05:00
Zachary Yedidia
d7b39fe7a5
Disable true color by default
2019-12-31 23:09:33 -05:00
Zachary Yedidia
abf07a8357
Update runtime
2019-12-31 22:42:35 -05:00
Zachary Yedidia
a2f7080602
Raw event support with new tcell
2019-12-31 22:34:43 -05:00
Zachary Yedidia
a2916c0e32
Escape sequence support
2019-12-31 21:50:26 -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
466c48da31
Merge
2019-12-31 17:53:00 -05:00
Zachary Yedidia
2c72a3755c
Fix openbuffer view creation
2019-12-31 17:52:55 -05:00
Zachary Yedidia
92054aa649
Merge
2019-12-31 16:49:21 -05:00
Zachary Yedidia
4b5be43e60
Create all parents of micro config automatically
...
Ref #1184
2019-12-31 16:48:45 -05:00
Zachary Yedidia
d83b912b3b
Add xclip message for pasting if unsupported
2019-12-31 16:12:39 -05:00
Zachary Yedidia
3b66a3364c
Fix some formatting
2019-12-29 22:02:14 -05:00
Zachary Yedidia
9b03a3dc6d
Add message if xclip/xsel not found
...
Ref #1236
Fixes #1031
2019-12-29 21:43:29 -05:00
Zachary Yedidia
5180634947
Merge
2019-12-29 18:23:22 -05:00
Zachary Yedidia
da643a0c1f
Run action completion on saves with prompts at the right time
2019-12-29 18:23:17 -05:00
Zachary Yedidia
cd6765673f
Support tcell EventPaste
2019-12-29 13:45:08 -05:00
Zachary Yedidia
cf1f9fa007
Use MICRO_CONFIG_HOME before trying XDG_CONFIG_HOME
2019-12-28 23:10:51 -05:00
Zachary Yedidia
29a5cef559
Update default plugins slightly
2019-12-28 22:39:57 -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
8663014bbe
Add support for syntax headers and update tcell
2019-12-28 18:53:51 -05:00
Zachary Yedidia
c2e7fd34a7
Fix issues related to tabbar/infobar mouse events
...
Fixes #1440
2019-12-28 15:56:56 -05:00
Zachary Yedidia
bd0c172667
Improve mouse selection performance
2019-12-28 12:04:43 -05:00
Zachary Yedidia
629f20720a
Fix add runtime file for local plugins
2019-12-27 20:28:25 -05:00
Zachary Yedidia
b1efabaaed
Command binding fix
2019-12-27 00:43:45 -05:00
Zachary Yedidia
185d54d664
Search and replace fixes
2019-12-27 00:06:02 -05:00
Zachary Yedidia
6681387b47
Support for file reloading if changed externally
2019-12-26 17:59:23 -05:00
Zachary Yedidia
6ba66320f0
Don't forward tabbar mouse events to panes
...
Fixes #1435
2019-12-26 17:02:02 -05:00
Zachary Yedidia
ec2976b069
Scroll up as much as possible
...
Fixes #1434
2019-12-26 16:57:09 -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
7f7ad29671
Improve lua interface for statusline
2019-12-26 12:46:10 -05:00
Zachary Yedidia
a95dab078e
Minor edit to statusline format
...
Ref #1432
2019-12-26 12:25:42 -05:00
Zachary Yedidia
f8218e0648
Fix bottomline when softwrap enabled
2019-12-25 19:44:58 -05:00
Zachary Yedidia
e66d01e989
Some documentation
2019-12-25 19:37:51 -05:00
Zachary Yedidia
ff6f28e366
Autocompletion fix for infobuffer
2019-12-25 17:05:11 -05:00
Zachary Yedidia
4951f155ea
Support for more complex action chaining
2019-12-25 17:05:11 -05:00
Zachary Yedidia
94ff79e7b2
Lua prompt support and plugin improvements
2019-12-25 17:05:11 -05:00
Zachary Yedidia
3b306c1d3b
Better softwrap
2019-12-25 17:05:11 -05:00
Zachary Yedidia
432f1f3363
Minor relocate improvement
2019-12-25 17:05:11 -05:00
Zachary Yedidia
93734f5668
Fix highlighting issue
2019-12-25 17:05:11 -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
a9bb1f35da
Improve selection display
2019-12-25 17:05:11 -05:00
Zachary Yedidia
04e5acb1f8
Minor highlighting fixes
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
88b8fc713d
Proper scrollbar location for hsplits
2019-12-25 17:05:11 -05:00
Zachary Yedidia
9127152d93
Fix goto issue
2019-12-25 17:05:11 -05:00
Zachary Yedidia
ba594abfad
Clearer status bar
2019-12-25 17:05:11 -05:00