Zachary Yedidia
96601a915d
Replace meta with alt automatically, update tcell
2020-09-05 21:59:19 -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
bbd6f559ab
Allow configuration for info/term bindings
...
This commit exposes the separate infopane bindings to configuration
from the user. This also adds support for separate bindings in the
terminal emulator view. Default bindings are provided, but can also
be rebound in bindings.json.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
2363a4019b
Separate bindings for buffers and command bar
...
This commit separates actions in the command bar from actions in
a normal buffer, and implements what is needed to allow rebinding,
although an interface for command bar keybindings is not yet exposed
to the user.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
d33c28eeb8
Preliminary support for key sequences
...
This commit adds support for binding key sequences such as
"<Ctrl-x><Ctrl-c>". This commit does not solve the problem
of global bindings yet, and therefore the command bar doesn't
work properly in this commit.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
037c3c993f
Add clipboard support for multicursors
...
Fixes #1721
2020-07-04 21:26:36 -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
44c1929f9d
Fix mouse support in command bar
2020-06-07 15:46:12 -04:00
Zachary Yedidia
8bd7e5807c
Always use current pane for keybinding actions
...
Fixes #1677
2020-05-29 14:38:29 -04:00
Zachary Yedidia
79c0ea17ad
Use CharacterCount over RuneCount
2020-05-20 16:47:08 -04:00
Zachary Yedidia
0a6720498f
Merge branch 'master' of https://github.com/zyedidia/micro
2020-05-17 12:23:21 -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
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
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
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
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
Zachary Yedidia
8a2048e7f6
Use tabbar color group, and mark modified tabs
...
Fixes #1523
2020-02-24 13:45:10 -05:00
Zachary Yedidia
db32b84cd1
Relocate after rune insert
...
Fixes #1510
2020-02-14 15:52:20 -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
12c286f9b1
Introduce IndentLine action
...
Closes #1476
2020-02-12 13:30:24 -05:00
Zachary Yedidia
bad78797bb
Clicking tabbar arrow scrolls and fix multicursor
...
Closes #1503
2020-02-12 13:05:15 -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
a52c0c2907
Add StartOfText options to multiactions
2020-02-06 17:10:32 -05:00
Zachary Yedidia
be7d27bc49
Action callbacks for lua actions
2020-02-06 11:12:34 -05:00
Zachary Yedidia
f6a9c482a6
Allow plugins to resize panes
2020-02-05 17:16:31 -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
d234e9ec41
Add cycleautocompleteback action
2020-01-04 15:51:15 -05:00
Zachary Yedidia
a2f7080602
Raw event support with new tcell
2019-12-31 22:34:43 -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
2c72a3755c
Fix openbuffer view creation
2019-12-31 17:52:55 -05:00
Zachary Yedidia
5180634947
Merge
2019-12-29 18:23:22 -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
cd6765673f
Support tcell EventPaste
2019-12-29 13:45:08 -05:00
Zachary Yedidia
c2e7fd34a7
Fix issues related to tabbar/infobar mouse events
...
Fixes #1440
2019-12-28 15:56:56 -05:00
Zachary Yedidia
b1efabaaed
Command binding fix
2019-12-27 00:43:45 -05:00
Zachary Yedidia
6681387b47
Support for file reloading if changed externally
2019-12-26 17:59:23 -05:00
Zachary Yedidia
4951f155ea
Support for more complex action chaining
2019-12-25 17:05:11 -05:00
Zachary Yedidia
94ff79e7b2
Lua prompt support and plugin improvements
2019-12-25 17:05:11 -05:00
Zachary Yedidia
3b306c1d3b
Better softwrap
2019-12-25 17:05:11 -05:00
Zachary Yedidia
9127152d93
Fix goto issue
2019-12-25 17:05:11 -05:00
Zachary Yedidia
d29994ada9
Close file
2019-12-25 17:05:11 -05:00