Zachary Yedidia
bd43a44194
Merge branch 'master' of https://github.com/zyedidia/micro
2020-05-21 14:36:34 -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
0064b8268f
Improve unicode line array test
2020-05-20 19:53:54 -04:00
Zachary Yedidia
9a22d93ea2
Expose CharacterCount to plugins
2020-05-20 18:04:00 -04:00
Zachary Yedidia
5c8a2332d9
Use unicode.Mark for combining unicode range
2020-05-20 18:01:10 -04:00
Zachary Yedidia
ff0683d6d0
Final touches for combining character support
2020-05-20 17:00:56 -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
65be5efd83
Merge branch 'p-e-w-buffer-benchmarks'
2020-05-20 15:29:02 -04:00
Zachary Yedidia
a491dd1c52
Merge branch 'buffer-benchmarks' of https://github.com/p-e-w/micro into p-e-w-buffer-benchmarks
2020-05-20 15:28:36 -04:00
Zachary Yedidia
d7ab44253f
Update tcell and support italics in colorschemes
...
Closes #1640
2020-05-17 12:48:34 -04:00
Zachary Yedidia
0a6720498f
Merge branch 'master' of https://github.com/zyedidia/micro
2020-05-17 12:23:21 -04:00
dmaluka
a150eef6f9
Fix end line number in HighlightMatches ( #1662 )
...
There is a bit of mess in the usage of HighlightMatches: in some places
we assume that it updates lines from startline to endline inclusive,
in other places we assume it's non-inclusive.
This fix makes it always inclusive.
In particular, it fixes a bug: when we open a file which has no
newline at the end, the last line isn't highlighted.
2020-05-17 16:05:34 -04:00
Zachary Yedidia
c46257222c
Add support for FindLiteral
...
Use the FindLiteral action to use Find without regex support.
Fixes #1661
2020-05-17 12:22:33 -04:00
jsyedidia
299af4a3db
Update hlint to 3.0 syntax ( #1659 )
2020-05-16 13:06:55 -04:00
Jeff Warner
d0f7ecf9ca
Adds command "tabmove ±n", for better tab management ( #1636 )
...
* Adds command "tabmove ±n", for better tab management
* Added tabmove to help:commands
* Replace uses of util.Min, util.Max with util.Clamp
Browsing code and discovered `util.Clamp`, ideal for this section of my code
* oops, missed an arg
* Typo, again
2020-05-14 21:51:49 -04:00
dmaluka
fb35e0312a
Fix unbind of a rune ( #1649 )
...
Fix problem with non-working unbind of a rune key.
E.g. after the following commands:
bind "n" "FindNext"
unbind "n"
Observed result: "n" key still triggers FindNext action
Expected result: "n" key inserts "n" rune
2020-05-14 21:50:28 -04:00
Zachary Yedidia
30395b1f67
Remove outdated c++ highlighter
...
Fixes #1652
2020-05-14 21:37:19 -04:00
Zachary Yedidia
ddf70953fe
Support snake case autocompletion
...
Fixes #1655
2020-05-14 21:34:17 -04:00
Zachary Yedidia
55e97596d3
Fix movelinesup when selection is not complete
2020-05-07 19:39:17 -04:00
Zachary Yedidia
66dc48ce9b
Improve readme
2020-05-04 22:21:46 -04:00
Zachary Yedidia
c490a94700
Update makefile
2020-05-04 10:34:16 -04:00
Zachary Yedidia
eff89a98a7
Fix v2 import path for go mod
2020-05-04 10:16:15 -04:00
Zachary Yedidia
221d8f462a
Merge branch 'jwarner112-jwarner112-copyline'
2020-04-30 00:54:11 -04:00
Zachary Yedidia
7a23878250
gofmt
2020-04-30 00:54:02 -04:00
Jeff Warner
5d3e4fc3d9
Adds CopyLine action, the new default action for CtrlC if cursor has no selection
2020-04-29 21:06:54 -07:00
Indiana Kernick
f52fbfa1f0
Add .inl as a C++ file extension ( #1630 )
2020-04-29 20:01:59 -04:00
Zachary Yedidia
d60626c64b
Merge
2020-04-25 17:01:20 -04:00
Zachary Yedidia
aaac0b1e6f
Better actions error message
2020-04-25 17:01:16 -04:00
Some person
0f984131fb
Update coffeescript.yaml ( #1571 )
...
* Update coffeescript.yaml
We need much much more modern coffeescript standards, the current one has broken `0x123456` (hex) and single quotes, and doesn't support multiline comments. This PR aims to fix that. I'm no regexp expert, I just based this off JS', so tell me if I did anything wrong.
* Update coffeescript.yaml
2020-04-22 23:12:56 -04:00
Zachary Yedidia
eb7189dcdb
Make cursor follow selections
...
Fixes #1624
2020-04-21 09:33:21 -04:00
Zachary Yedidia
74523d28c5
Merge
2020-04-20 23:13:10 -04:00
Zachary Yedidia
f894f0a26e
Update clipboard version
2020-04-20 23:13:01 -04:00
2pac
a067ce1f41
implemented circular tab movement ( #1619 )
...
Co-authored-by: 2pac <tarasyarema@pm.me>
2020-04-17 13:42:48 -04:00
Zachary Yedidia
f59468642d
Update runtime
2020-04-10 17:27:57 -04:00
Zachary Yedidia
85e85b7ccc
Merge
2020-04-10 17:27:34 -04:00
Zachary Yedidia
8f5888e7bf
Use StartCol in colorcolumn calculation
...
Fixes #1615
2020-04-10 17:27:11 -04:00
Ján Jančár
f0da73bae2
Add StartOfTextToggle and SelectToStartOfTextToggle actions. ( #1612 )
...
These actions reintroduce the behavior of micro where the Home key
toggles between the start of text (first) and the start of the line.
The same applies for the variant with selection. This commit also
sets these bindings as the defaults.
2020-04-10 17:21:02 -04:00
Zachary Yedidia
d92deacf99
Ensure mouse release before focus change
...
Fixes #1613
2020-04-10 15:58:43 -04:00
trrbl
ffd7b5c770
Support csharp-script syntax. ( #1425 )
...
```
#!/usr/bin/env dotnet-script
// Set Runtime
#! "netcoreapp3.0"
// Imports
#load "myAssembly.dll"
#r "nuget:CliWrap,2.5.0"
```
This syntax file basically imports the `csharp` rules and adds it's custom pre-processors.
2020-04-10 13:57:36 -04:00
Ján Jančár
bd8c0d25c8
Add sagemath syntax highlight based on python3. ( #1227 )
2020-04-09 12:20:48 -04:00
Ján Jančár
052a36b896
Fix docs regarding "Home" key and "StartOfText" and "StartOfLine". ( #1611 )
2020-04-07 12:58:30 -04:00
jsyedidia
a76bf02f5f
Add Haskell linter hlint to linter plugin ( #1610 )
2020-04-05 14:05:01 -04:00
Nikita Bobko
92f4cb7ef7
Clarify regex for git commit --verbose
( #1606 )
2020-04-05 14:04:36 -04:00
Zachary Yedidia
1cf9537340
Fix python3 syntax file and make python3 default
...
The python3 syntax had "filename" instead of "filetype"
as the header. This commit also makes standard py extensions
use the python3 highlighting and requires .py2 or a python2
env to use python2 highlighting because python3 is the standard
python now.
Fixes #1592
2020-03-24 11:42:23 -04:00
Zachary Yedidia
60c8c81da3
Relocate during replace
...
Fixes #1587
2020-03-24 11:33:52 -04:00
Zachary Yedidia
c76a973877
Merge
2020-03-24 11:17:12 -04:00
Zachary Yedidia
6def99ce24
Clarify replace message if replacing in selection
2020-03-24 11:14:54 -04:00
Koki Fushimi
26930ca81f
Better Julia syntax. ( #1567 )
...
* Fix regex syntax and change to match one or more spaces.
* Add constant `nothing` and `missing`.
* Add Inf and NaN to constant numbers.
2020-03-24 10:59:48 -04:00
Hugo Locurcio
cd379cd838
Clarify the Find operation being regex-enabled ( #1561 )
...
This makes it more obvious that the Find option accepts regular
expressions as input.
See discussion in #1560 .
2020-03-24 10:59:40 -04:00