fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit d9be156f9ef47b09636f2c14f1e07b6def7dfec7
parent 4f2fb9abf4c2d0af67643ef60886e931421c7c93
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Tue, 16 Sep 2014 18:41:49 -0700

Add config.h

Diffstat:
Aconfig.h | 1+
Mfzy.c | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.h b/config.h @@ -0,0 +1 @@ +#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW diff --git a/fzy.c b/fzy.c @@ -9,6 +9,8 @@ #include "tty.h" #include "choices.h" +#include "config.h" + int flag_show_scores = 0; size_t num_lines = 10; @@ -45,8 +47,6 @@ void clear(tty_t *tty){ tty_flush(tty); } -#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW - void draw_match(tty_t *tty, const char *choice, int selected){ int n = strlen(search); size_t positions[n + 1];