git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit c3b68cb3908f3bf9877e8a0a4ea9c7cbbbd17c41
parent 6042b43bdf031840e8014cfce14871354415c350
Author: Rob King <jking@deadpixi.com>
Date:   Fri, 17 Feb 2017 23:01:33 -0600

Get rid of the quasimode for movement.

It seemed like a good idea at the time. It wasn't.

Diffstat:
Mmtm.c17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -401,15 +401,16 @@ handlechar(int k) #define C(c) case c : case CTL(c) switch (k){ - case KEY_UP: focus(findnode(root, ABOVE(focused))); return true; - case KEY_DOWN: focus(findnode(root, BELOW(focused))); return true; - case KEY_LEFT: focus(findnode(root, LEFT(focused))); return true; - case KEY_RIGHT: focus(findnode(root, RIGHT(focused))); return true; - C('h'): split(focused, HORIZONTAL); cmd = false; return true; - C('v'): split(focused, VERTICAL); cmd = false; return true; - C('w'): deletenode(focused); cmd = false; return true; - C('l'): draw(root, true); return true; + case KEY_UP: focus(findnode(root, ABOVE(focused))); return true; + case KEY_DOWN: focus(findnode(root, BELOW(focused))); return true; + case KEY_LEFT: focus(findnode(root, LEFT(focused))); return true; + case KEY_RIGHT: focus(findnode(root, RIGHT(focused))); return true; + C('h'): split(focused, HORIZONTAL); return true; + C('v'): split(focused, VERTICAL); return true; + C('w'): deletenode(focused); return true; + C('l'): draw(root, true); return true; } + cmd = false; return cmd = false; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.