shithub: orca

Download patch

ref: 6d7bb8930001936708e7cb47abfaa130c8e87dfc
parent: 9e92e0b0db598727acc8c52a3df460c1df44db60
author: cancel <cancel@cancel.fm>
date: Sun Dec 2 13:26:01 EST 2018

Add ctrl+hjkl movement to tui

--- a/tui_main.c
+++ b/tui_main.c
@@ -367,14 +367,18 @@
     case AND_CTRL('g'):
       goto quit;
     case KEY_UP:
+    case AND_CTRL('k'):
       tui_cursor_move_relative(&tui_cursor, field.height, field.width, -1, 0);
       break;
+    case AND_CTRL('j'):
     case KEY_DOWN:
       tui_cursor_move_relative(&tui_cursor, field.height, field.width, 1, 0);
       break;
+    case AND_CTRL('h'):
     case KEY_LEFT:
       tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, -1);
       break;
+    case AND_CTRL('l'):
     case KEY_RIGHT:
       tui_cursor_move_relative(&tui_cursor, field.height, field.width, 0, 1);
       break;