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
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
eff89a98a7
Fix v2 import path for go mod
2020-05-04 10:16:15 -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
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
Zachary Yedidia
eb7189dcdb
Make cursor follow selections
...
Fixes #1624
2020-04-21 09:33:21 -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
jsyedidia
a76bf02f5f
Add Haskell linter hlint to linter plugin ( #1610 )
2020-04-05 14:05:01 -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
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
allanderek
ee157f6503
Add elm as a default comment type in the comment plugin. ( #1586 )
2020-03-24 10:56:50 -04:00
Zachary Yedidia
48ca19873f
Better ordering for reading syntax files
...
Ref #1580
2020-03-24 10:52:15 -04:00
Zachary Yedidia
fee5528309
Fix term emulator crash if invalid exec given
...
Ref #1583
2020-03-24 10:22:10 -04:00
Zachary Yedidia
18d540583b
Don't clear infobar if not enabled
...
Fixes #1584
2020-03-17 14:21:36 -04:00
Zachary Yedidia
943ea15fa3
Fix linter c++ entry
...
Fixes #1578
2020-03-14 15:40:05 -04:00
Zachary Yedidia
527750b68d
Copy selection to primary on mouse release
...
Fixes #1558
2020-03-05 16:00:40 -05:00
Zachary Yedidia
629efe5eb7
Add JumpLine action back
...
You can bind to "command-edit:goto ", but binding to the action
"JumpLine" will have the same effect now.
Fixes #1550
2020-03-02 20:09:19 -05:00
Philipp Emanuel Weidmann
d038d3040f
Add more sophisticated buffer benchmark system
2020-03-01 13:20:10 +05:30
Zachary Yedidia
9e8d76f2fa
If stdout is a pipe, output to the pipe
...
If you run micro as `micro | cat` for example, micro will disallow
you from saving the file, and when you quit the buffer, the contents
will be sent to the pipe. This allows one to use micro as part of
an interactive unix pipeline.
Closes #1524
2020-02-27 12:39:19 -05:00
Zachary Yedidia
8a9a14562f
Use bytes.Buffer for LineArray.Bytes
2020-02-27 11:27:00 -05:00
Zachary Yedidia
a6f5dee45c
Fix custom syntax files not highlighting
...
Fixes #1530
2020-02-27 00:58:52 -05:00
Zachary Yedidia
b12886b066
Improve buffer test
2020-02-25 23:59:27 -05:00
Zachary Yedidia
56f5b475eb
Improve buffer test
2020-02-25 23:21:50 -05:00
Zachary Yedidia
c51f84955e
Update runtime
2020-02-25 21:08:22 -05:00
Zachary Yedidia
e4bf1e9984
Undo event chunks instead of single events
2020-02-25 20:53:48 -05:00
Zachary Yedidia
53bda0cfa7
Fix buffer tests and selection bug
...
Fixes #1528
Ref #1526
2020-02-25 20:24:02 -05:00
Zachary Yedidia
f059541e0d
Merge branch 'buffer-tests' of https://github.com/p-e-w/micro into buffer-unit-tests
2020-02-25 10:30:31 -05:00
Zachary Yedidia
d78fe81e21
line_array insert for eofnewline and make default
...
Makes the `eofnewline` option enabled by default.
Fixes #1525
2020-02-24 22:31:05 -05:00
josh
25b9342fbe
fix eofnewline not running on files with 1 rune ( #1535 )
2020-02-24 22:26:51 -05:00
Zachary Yedidia
70bcf9f618
Fix text transformation bug
...
This fixes the remaining text transformation tests.
Ref #1526
2020-02-24 20:11:11 -05: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
0174d7dba4
Move multi-cursors correctly after newlines
...
Fixes #1527
2020-02-24 13:39:34 -05:00
Zachary Yedidia
e1827480c9
Filename completion for all non-command prompts
...
Fixes #1529
2020-02-24 13:00:55 -05:00
Zachary Yedidia
d8584d1ddb
Debug off using default "go build"
...
Ref #1469
2020-02-24 12:55:59 -05:00
Philipp Emanuel Weidmann
f0cdc3cabb
Add buffer test and benchmark suite (and tool to generate it)
2020-02-22 08:51:38 +05:30
Zachary Yedidia
2ef4f83358
Fix issue with simultaneous buffers
2020-02-19 17:40:54 -05:00
Zachary Yedidia
a9120ce270
Share more buffer elements and fix rehighlight
...
Fixes #1521
2020-02-19 14:41:30 -05:00
Zachary Yedidia
cf3fdb344a
Merge
2020-02-18 21:40:36 -05:00
Zachary Yedidia
b91242124c
Go lint the current directory of file
...
Closes #1520
2020-02-18 21:40:14 -05:00
Zachary Yedidia
5ffc19f159
Use filecomplete for shell mode
2020-02-17 22:29:33 -05:00
Zachary Yedidia
cc994b6241
Fix relocation with softwrap on small buffers
...
Fixes #1512
2020-02-15 15:38:20 -05:00
Zachary Yedidia
087e7207f7
Add 'xterm' option
...
Ref #1489
2020-02-15 12:53:17 -05:00
Zachary Yedidia
db32b84cd1
Relocate after rune insert
...
Fixes #1510
2020-02-14 15:52:20 -05:00
Zachary Yedidia
600d8558b2
Change some default option values
2020-02-13 20:51:56 -05:00
Zachary Yedidia
38f88ade60
Search and replace within a selection
...
Closes #1098
2020-02-13 19:48:48 -05:00
Zachary Yedidia
faa207907c
Handle terminal paste and raw events in info bar
2020-02-13 16:10:35 -05:00
Zachary Yedidia
30ed25859a
Support regex capture groups in replace command
...
See https://golang.org/pkg/regexp/syntax/ for the
supported syntax. Here are some examples:
```
replace "(foo)" "$1-bar"
replace "(foo)" "${1}-bar"
replace "(?P<group>foo)" "$group-bar"
replace "(?P<group>foo)" "$group-bar"
replace "(?P<key>\w+):\s+(?P<value>\w+)$" "$key=$value"
```
Closes #1115
2020-02-13 16:05:56 -05:00
Zachary Yedidia
a07ee26b05
Fix gutter offset when softwrap is enabled
2020-02-13 11:04:10 -05:00
Zachary Yedidia
5519f053ac
Merge branch 'autosu' of https://github.com/seitokaichou/micro into seitokaichou-autosu
2020-02-12 14:15:30 -05:00
Zachary Yedidia
ea290e4fb5
Merge branch 'bug-endless-reload-prompt' of https://github.com/jawahars16/micro into jawahars16-bug-endless-reload-prompt
2020-02-12 13:56:00 -05:00
Zachary Yedidia
e7ef81ed97
Share hash across equivalent buffers for fastdirty=off
2020-02-12 13:32:42 -05:00
Zachary Yedidia
12c286f9b1
Introduce IndentLine action
...
Closes #1476
2020-02-12 13:30:24 -05:00
Zachary Yedidia
7b5bc8fe37
Fix issue with global/local settings
2020-02-12 13:18:59 -05:00
Zachary Yedidia
bad78797bb
Clicking tabbar arrow scrolls and fix multicursor
...
Closes #1503
2020-02-12 13:05:15 -05:00
Zachary Yedidia
bf1258578c
Expose OpenLogBuf to plugins
2020-02-12 12:35:40 -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
7d47659481
Fix deleteLines off-by-one error
...
Fixes #1501
2020-02-12 01:16:11 -05:00
Zachary Yedidia
dcd4bae96f
Clamp modifications
...
Fixes #1502
2020-02-12 00:55:52 -05:00
Zachary Yedidia
1a64ffb88b
Don't expose draw channel to outside packages
2020-02-11 20:39:26 -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
feaf3951d2
Update haskell syntax file
2020-02-11 19:13:36 -05:00
Zachary Yedidia
695d4c2b1b
Use filepath.Join more
2020-02-11 13:09:17 -05:00
Zachary Yedidia
8176e8c6f8
Improve one-dark colorscheme divider
2020-02-10 23:37:21 -05:00
Zachary Yedidia
71f5f043fb
Merge
2020-02-10 19:56:17 -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
c88c1b84da
Term should return error on unsupported systems
...
Fixes #1494
2020-02-10 19:09:03 -05:00
Zachary Yedidia
e1e310a96e
Document all options
2020-02-10 15:07:00 -05:00
Zachary Yedidia
185b8de17b
Merge branch 'issue_1008' of https://github.com/sum01/micro into sum01-issue_1008
2020-02-10 14:59:31 -05:00
Zachary Yedidia
848bd1ba8c
Fix rehighlight for retab
2020-02-10 14:49:08 -05:00
Zachary Yedidia
ecb9fd5a8a
Change diffgutter default to false
2020-02-10 00:30: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
Zachary Yedidia
3ed77dbb2e
Sanitize inputs to insert and remove
2020-02-10 00:18:08 -05:00
Zachary Yedidia
63046ae909
Don't autocomplete in the middle of a word
...
Fixes #1490
2020-02-09 16:46:53 -05:00
Zachary Yedidia
af48e4b79b
Fix save callbacks
...
Fixes #1491
2020-02-09 16:36:15 -05:00
Zachary Yedidia
4e73d0779b
Create bindings.json if it does not exist
2020-02-09 16:27:39 -05:00
Zachary Yedidia
6f424f3213
Properly flush bufio writer
2020-02-09 15:36:31 -05:00
Zachary Yedidia
e110e93e0f
Improve disk performance with buffered io
2020-02-09 15:21:23 -05:00
Zachary Yedidia
8ddf335e68
Improve remove performance
2020-02-09 14:58:37 -05:00
Zachary Yedidia
ca9d102267
Start insert performance improvements
2020-02-09 14:30:20 -05:00
Zachary Yedidia
13e30a63eb
Minor improvements
2020-02-09 00:40:50 -05:00
Zachary Yedidia
ce91e41e5a
Update third party licenses
2020-02-09 00:03:03 -05:00