worldmaker
06a5f1a62d
fix the missing break in JumpToMatchingBrace ( #1960 )
...
In JumpToMatchingBrace, the loop should stop immediately after finding the matching bracket.
It causes multiple jumps in certain situations:
`(I [ ]{ }) => ( I[ ]{ })`
2020-12-27 18:38:16 -05: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
Zachary Yedidia
6b80870dfd
Don't auto-relocate mouse events
2020-08-12 01:18:15 -04:00
Zachary Yedidia
102ae04a16
Improve multicursor clipboard
...
Ref #1721
2020-07-05 01:12:35 -04:00
Zachary Yedidia
037c3c993f
Add clipboard support for multicursors
...
Fixes #1721
2020-07-04 21:26:36 -04:00
Zachary Yedidia
d8596919a6
Fix reading clipboard internally for OSC52
2020-07-04 20:54:27 -04:00
Zachary Yedidia
f143418267
Add support for copy-paste via OSC 52
...
Ref #1754
2020-07-04 20:00:39 -04:00
Zachary Yedidia
32c8517a90
Rebind escape to clear info and deselect
2020-07-03 21:02:16 -04:00
Zachary Yedidia
3ddb2ee316
Add Search function to BufPane
2020-06-23 18:47:42 -04:00
Zachary Yedidia
79ee757757
Only start autocompletion for alphanumerics
...
Ref #1712
2020-06-08 13:54:31 -04:00
Zachary Yedidia
ffc922a7c5
Only perform save callback if save was successful
...
Fixes #1684
2020-05-29 15:02:38 -04:00
Zachary Yedidia
79c0ea17ad
Use CharacterCount over RuneCount
2020-05-20 16:47:08 -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
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
2pac
a067ce1f41
implemented circular tab movement ( #1619 )
...
Co-authored-by: 2pac <tarasyarema@pm.me >
2020-04-17 13:42:48 -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
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
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
Zachary Yedidia
cc994b6241
Fix relocation with softwrap on small buffers
...
Fixes #1512
2020-02-15 15:38:20 -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
12c286f9b1
Introduce IndentLine action
...
Closes #1476
2020-02-12 13:30:24 -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
8224037080
Don't block when redraw channel becomes full
...
Fixes #1497
2020-02-11 20:03:32 -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
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
6d99d34eb0
Fix unsplit crash
...
Fixes #1488
2020-02-08 21:06:13 -05:00
Zachary Yedidia
6514b77e0d
Enable autosave option
...
The autosave option is now specified as an integer, which denotes
the number of seconds to wait between saving the file. If the option
is 0, then autosaving is disabled. If the option is given by the user
as a boolean, it will be converted to 8 if true, and 0 if false.
Fixes #1479
2020-02-08 16:53:08 -05:00
Philipp Emanuel Weidmann
de33eac058
Add diff gutter
2020-02-08 13:26:24 +05:30
Zachary Yedidia
24a684cff2
Merge branch 'master' of https://github.com/dbeef/micro into dbeef-master
2020-02-07 19:37:56 -05:00
Zachary Yedidia
28ed47e358
Fix cycleback in infopane
2020-02-02 16:16:53 -05:00
Zachary Yedidia
3252324d24
Don't indent empty lines
...
Fixes #1472
2020-01-26 00:40:40 -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
6a465500bc
Properly handle empty args with new shellquote lib
...
Fixes #1454
2020-01-06 11:38:21 -05:00
Zachary Yedidia
d234e9ec41
Add cycleautocompleteback action
2020-01-04 15:51:15 -05:00
Zachary Yedidia
dfb6bc0312
Fix save callback issue
2020-01-03 17:38:50 -05:00
Zachary Yedidia
2855ae204c
Replace shellwords with shellquote
2020-01-02 18:30:51 -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
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
da643a0c1f
Run action completion on saves with prompts at the right time
2019-12-29 18:23:17 -05:00
Zachary Yedidia
bd0c172667
Improve mouse selection performance
2019-12-28 12:04:43 -05:00
Zachary Yedidia
ec2976b069
Scroll up as much as possible
...
Fixes #1434
2019-12-26 16:57:09 -05:00