#cursive #cursive-views #terminal

cursive-hjkl

Transparently adds Vim-like HJKL controls to any Cursive view

2 unstable releases

0.2.0 Sep 23, 2024
0.1.0 May 10, 2024

#433 in Command-line interface

Download history 7/week @ 2024-10-08 4/week @ 2024-10-15 4/week @ 2024-10-29 13/week @ 2024-11-05 3/week @ 2024-11-12 12/week @ 2024-11-19 2/week @ 2024-12-03 18/week @ 2024-12-10

89 downloads per month

MIT license

4KB
71 lines

cursive-hjkl

Transparently wraps any cursive View with hjkl controls.

Specifically, the wrapper listens for HJKL keys, and if the inner view doesn't respond to them, it re-sends an event with arrow keys instead. Because it spoofs arrow keys, it should Just Work on a lot of pre-existing views.

I wrote this for ttyloop.

Dependencies

~7–13MB
~147K SLoC