Zachary Yedidia
95fea064b0
Fix internal string binding representation
2020-11-05 15:52:25 -05:00
Dmitry Maluka
23162f7a34
Add tabbar.active color group ( #1831 )
...
Added tabbar.active color group for displaying the name of the active
tab in the tabbar with different colors.
If tabbar.active is not defined in the colorscheme, the active tab name
is displayed with the same colors as inactive ones.
Ref #1646
2020-10-17 20:53:08 -04:00
Dmitry Maluka
92e9060bcd
Fix suggestions display ( #1825 )
...
Fix the following bugs:
- If a split pane is not at the left edge of the screen, the statusline
with suggestions for it is displayed at wrong place.
- When keymenu is enabled, the statusline with suggestions is not
displayed at all.
2020-10-17 20:48:39 -04:00
Zachary Yedidia
49786cf8c3
Fix palette colors with tcell v2
2020-09-21 01:21:59 -04:00
Sourya Vatsyayan
fc3dd9a62f
Fix quality issues ( #1856 )
...
* Add .deepsource.toml
* Remove unnecessary comparison with bool
* Remove unnecessary use of slice
* Replace multiple `append`s with one
* Remove unnecessary wrapping of function call
* Fix check for empty string
* Simplify error creation with `fmt.Errorf`
* Fix defers before error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Remove untrappable `os.Kill` signal
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Remove empty else branch
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Add missing error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Merge variable declaration and assignment
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Remove unnecessary `nil` check
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Revert changes to generated files
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
* Remove .deepsource.toml
Signed-off-by: sourya_deepsource <sourya@deepsource.io >
Co-authored-by: DeepSource Bot <bot@deepsource.io >
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-09-16 00:08:01 -04:00
Zachary Yedidia
11104fd093
Update to tcell v2
2020-09-05 14:52:35 -04:00
Dmitry Maluka
c7e72220dd
Add scrollbar color group ( #1840 )
...
Ref #1837
2020-08-23 15:45:43 -04:00
Dmitry Maluka
6e43af31cb
Fix non-working split resize with mouse drag ( #1811 )
...
Fix the 2nd part of #1773 : resize via mouse drag doesn't work if the
split on the left contains other splits, i.e. is not a leaf node.
The problem is that only leaf nodes have unique id. For non-leaf nodes
ID() returns 0. So we shouldn't search the node by id.
So replace GetMouseSplitID() with GetMouseSplitNode().
2020-08-04 18:37:19 -04:00
Dmitry Maluka
a4cc5a4146
Fix erased vertical dividing line ( #1810 )
...
Fix the 1st part of #1773 : the dividing line between vertical splits
is not displayed if the split on the left contains other splits, i.e.
is not a leaf node.
2020-08-04 18:33:16 -04:00
Dmitry Maluka
1f58eecf3c
Lower priority of cursorline and colorcolumn highlighting ( #1697 )
...
Fixes #1665
2020-06-08 16:15:54 -04:00
Dmitry Maluka
63900cb395
Fix highlighting at the end of line ( #1705 )
...
Fixes #1664
2020-06-04 23:32:31 -04:00
Colin Hughes
00edf0207f
Added hybrid line numbers ( #1690 )
...
* Added hybrid line numbers
* Changed rulerhybrid to relativeruler, modified documentation accordingly.
* Reverted go.mod and go.sum
I don't know how they got changed but they are good now.
Co-authored-by: Colin Hughes <semilin@pop-os.localdomain >
2020-05-28 22:24:09 -04:00
Zachary Yedidia
bfe68b1626
Allow divider customization with divchars option
...
Adds the `divchars` and `divreverse` options to customize divider
styles.
2020-05-21 14:35:54 -04:00
Zachary Yedidia
79c0ea17ad
Use CharacterCount over RuneCount
2020-05-20 16:47:08 -04:00
Zachary Yedidia
bdff221870
Use DecodeCharacter over DecodeRune
2020-05-20 16:43:12 -04:00
Zachary Yedidia
eff89a98a7
Fix v2 import path for go mod
2020-05-04 10:16:15 -04:00
Zachary Yedidia
eb7189dcdb
Make cursor follow selections
...
Fixes #1624
2020-04-21 09:33:21 -04:00
Zachary Yedidia
8f5888e7bf
Use StartCol in colorcolumn calculation
...
Fixes #1615
2020-04-10 17:27:11 -04:00
Zachary Yedidia
60c8c81da3
Relocate during replace
...
Fixes #1587
2020-03-24 11:33:52 -04:00
Zachary Yedidia
18d540583b
Don't clear infobar if not enabled
...
Fixes #1584
2020-03-17 14:21:36 -04:00
Zachary Yedidia
dff8b33e9c
Apply basename option in tabbar as well
2020-02-24 13:48:37 -05:00
Zachary Yedidia
8a2048e7f6
Use tabbar color group, and mark modified tabs
...
Fixes #1523
2020-02-24 13:45:10 -05:00
Zachary Yedidia
a9120ce270
Share more buffer elements and fix rehighlight
...
Fixes #1521
2020-02-19 14:41:30 -05:00
Zachary Yedidia
cc994b6241
Fix relocation with softwrap on small buffers
...
Fixes #1512
2020-02-15 15:38:20 -05:00
Zachary Yedidia
38f88ade60
Search and replace within a selection
...
Closes #1098
2020-02-13 19:48:48 -05:00
Zachary Yedidia
a07ee26b05
Fix gutter offset when softwrap is enabled
2020-02-13 11:04:10 -05:00
Zachary Yedidia
bad78797bb
Clicking tabbar arrow scrolls and fix multicursor
...
Closes #1503
2020-02-12 13:05:15 -05:00
Zachary Yedidia
6588f02f7b
Only highlight matching brace if one is found
...
Fixes #1505
2020-02-12 01:32:23 -05:00
Zachary Yedidia
dcd4bae96f
Clamp modifications
...
Fixes #1502
2020-02-12 00:55:52 -05:00
Zachary Yedidia
8224037080
Don't block when redraw channel becomes full
...
Fixes #1497
2020-02-11 20:03:32 -05:00
Zachary Yedidia
f3eaf99665
Draw FakeCursor in infobar when on a character
...
Fixes #1496
2020-02-10 19:55:13 -05:00
Zachary Yedidia
bdf9e6d3a4
Merge branch 'diff-gutter' of https://github.com/p-e-w/micro
2020-02-10 00:28:43 -05:00
Rein F
2fd59adffa
Show that the file is readonly ( #1486 )
...
* Show that the file is readonly)
* change the (readonly) statusline msg into [ro]
2020-02-08 19:34:35 -05:00
Philipp Emanuel Weidmann
de33eac058
Add diff gutter
2020-02-08 13:26:24 +05:30
Zachary Yedidia
6e3f38b271
Add scrolling to command bar autocompletion
2020-02-02 20:17:46 -05:00
Zachary Yedidia
09ea82c97e
Disable current line num style if no cursorline
2020-02-02 00:34:28 -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
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
8e7a016917
Tab horizontal scrolling should not be negative
...
Fixes #1467
2020-01-25 13:17: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
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
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
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
7f7ad29671
Improve lua interface for statusline
2019-12-26 12:46:10 -05:00