]> git.lizzy.rs Git - micro.git/commit
Make ^X act like ^K when nothing is selected (#1092)
authorMark Weston <markweston@cock.li>
Mon, 23 Apr 2018 19:34:45 +0000 (22:34 +0300)
committerZachary Yedidia <zyedidia@gmail.com>
Mon, 23 Apr 2018 19:34:45 +0000 (15:34 -0400)
commitb181342ff1117c1014323eb4bef5188b7f2ec7f4
treefc831ef7142f0c1716807b0c79c56527b2e2d213
parentf0e2f3cc96bbdcdbe3ce3c9d3c0b78f0ec51e8f6
Make ^X act like ^K when nothing is selected (#1092)

* Make ^X act like ^K when nothing is selected

^K is hard to reach with your left hand or requires to use both hands
Also with this you could remove ^K whatsoever and make room for a different command
This is how I configured nano by the way
Line duplication also becomes nearly instantaneous with a flash-quick ^X+^V+^V combo (nano doesn't have a dedicated shortcut)
Small block (5-10 lines) cuts/copies/duplicates can also be made this way

* Remove unnecessary lines

* Call CutLine the right way
cmd/micro/actions.go