JT Olio
ae9bb763fb
a few miscellaneous fixes and improvements ( #1105 )
...
* add binding for more primitive backspace
* support selecting page up and page down
* fix matchbraceleft for braces that start on x=0
* fix multiline copy-paste indenting
let's say you have two lines like
<space><space>line1
<space><space>line2
so you start from cursor x=0 and select both lines, then paste.
we don't want any leading whitespace in this case, because the
cursor is already at x=0 and the selection already includes
whitespace.
2018-05-12 21:31:57 -04:00
Zachary Yedidia
53e142fb88
Fix matchbraceleft option
...
Fixes #1101
2018-04-28 17:42:17 -04:00
JT Olds
ea6a87d41a
allow optionally brace matching with the closing brace to the left of the cursor
...
this behavior, while slightly less obvious, allows for observing what brace you
just closed. as you write closing braces, the brace you closed gets highlighted
2018-02-27 18:53:04 -07:00
Zachary Yedidia
015fcf5fec
Minor optimizations
2018-01-29 16:02:15 -05:00
Zachary Yedidia
79349562b2
Improve unicode softwrap drawing
...
Ref #1002
Ref #909
2018-01-20 12:36:22 -05:00
Zachary Yedidia
1cf4baa743
Don't use indentchar style if disabled
...
Fixes #990
2018-01-14 11:23:30 -08:00
Zachary Yedidia
805d6ccaf7
Don't brace highlight with selection
2018-01-07 20:58:01 -05:00
Zachary Yedidia
fc2566a0de
Add JumpToMatchingBrace action
...
This commit adds the JumpToMatchingBrace action which lets the cursor
jump to a matching brace if it is on one.
Closes #853
2018-01-07 16:17:22 -05:00
Zachary Yedidia
86c08bd747
Add brace highlighting
...
Use the 'matchbrace' option which is off by default.
Ref #853
2018-01-07 15:50:08 -05:00
Zachary Yedidia
71ee185b80
Check width before drawing cellview
...
Fixes #927
2017-11-23 14:44:07 -05:00
aerth
f6ccaadc0c
use space for indentchar if empty, fixes #660
2017-05-12 16:32:24 -07:00
Zachary Yedidia
57110c98e4
Fix rare problem with tabs and horizontal scrolling
2017-05-05 11:34:14 -04:00
Zachary Yedidia
84e350aa6f
Optimize memory usage for loading syntax files
2017-05-02 10:30:27 -04:00
Zachary Yedidia
d0e39853c6
Fix issue with cursorline
2017-04-22 18:48:05 -04:00
Zachary Yedidia
471a8b7c2b
Fix crash if tabs extend past view width
...
Ref #631
2017-04-21 12:48:03 -04:00
Zachary Yedidia
c24f75999a
Better unicode support in highlight
2017-03-27 19:35:28 -04:00
Zachary Yedidia
47fd1475b5
Fix indent char styling
...
Closes #598
2017-03-27 11:45:24 -04:00
Zachary Yedidia
9c5ab2afbd
Fix possible overflow error
2017-03-25 17:31:46 -04:00
Zachary Yedidia
d413562145
Add more performance and memory optimizations
2017-03-24 14:11:21 -04:00
Zachary Yedidia
bea1c5dc28
Fix another issue with horizontal scrolling
2017-03-22 12:28:02 -04:00
Zachary Yedidia
04b4dbbfee
Improve performance on long lines
2017-03-22 11:58:43 -04:00
Zachary Yedidia
d55e7319da
Fix small bug
2017-03-21 15:46:06 -04:00
Zachary Yedidia
8a33c98bc6
Support rule precedence just like the old format
2017-03-21 13:15:46 -04:00
Zachary Yedidia
59bf1a2260
Optimize the memory usage for syntax highlighting
2017-03-21 12:45:27 -04:00
Zachary Yedidia
23152f0c50
Use bytes for highlight groups
2017-03-20 15:14:04 -04:00
Zachary Yedidia
ea7f90713c
Fix some small glitches with cursor positioning
2017-03-13 19:23:47 -04:00
Zachary Yedidia
a095644731
Minor fix to tab size
2017-02-26 11:14:35 -05:00
Zachary Yedidia
f197eca320
Improve horizontal scrolling
2017-02-26 11:14:35 -05:00
Zachary Yedidia
16d8a560bf
Don't highlight if syntax is off
2017-02-26 11:14:35 -05:00
Zachary Yedidia
ff5c8d7451
Draw tab characters correctly
2017-02-26 11:14:35 -05:00
Zachary Yedidia
7fe2b8ef2f
Store highlighting matches in each line
2017-02-26 11:14:35 -05:00
Zachary Yedidia
7bb61307e0
Fix tab size
2017-02-26 11:14:35 -05:00
Zachary Yedidia
d0057121ef
Start implementing syntax highlighting optimizations
2017-02-26 11:14:35 -05:00
Zachary Yedidia
18c4196354
Store states in linearray
2017-02-26 11:14:35 -05:00
Zachary Yedidia
2fcb40d5a9
Use new syntax highlighting engine from zyedidia/highlight
...
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00
Zachary Yedidia
0adb601f3c
Improve drawing
2017-02-26 11:14:35 -05:00
Zachary Yedidia
b669437296
Add gutter message drawing and better cursor locating
2017-02-26 11:14:35 -05:00
Zachary Yedidia
d2a1d849c9
Calculate line number offset
2017-02-26 11:14:35 -05:00
Zachary Yedidia
712b383e2c
Use the new cellview for displaying
...
Syntax highlighting is still not supported when using the new cellview.
2017-02-26 11:14:35 -05:00
Zachary Yedidia
94175d1aa6
Add beginning of cellview as well as improved ViewTypes
...
This is the beginning of the view refactor (#515 ). It's just
the start and is untested for now.
2017-02-26 11:14:35 -05:00