fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit ae418ccd6d225d868373799c8aee093811a5ba6d parent e8dd12daacc9d6e0fc1dbf0b8b73206a91d3073a Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sat, 16 Aug 2014 20:08:51 -0700 Support UP/DOWN arrow Diffstat:
| M | fzy.c | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/fzy.c b/fzy.c @@ -198,6 +198,16 @@ void run(tty_t *tty){ }else if(ch == 10){ /* Enter */ clear(tty); emit(tty); + }else if(ch == 27){ /* ESC */ + ch = tty_getchar(tty); + if(ch == '['){ + ch = tty_getchar(tty); + if(ch == 'A'){ /* UP ARROW */ + action_prev(); + }else if(ch == 'B'){ /* DOWN ARROW */ + action_next(); + } + } } }while(1); }