#cursive #terminal #cursive-views #events

cursive-hjkl

Transparently adds Vim-like HJKL controls to any Cursive view

1 unstable release

0.1.0 May 10, 2024

#389 in Command-line interface

Download history 145/week @ 2024-05-08 8/week @ 2024-05-15 6/week @ 2024-05-22

159 downloads per month

MIT license

4KB
63 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

~6MB
~102K SLoC