fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 539288bd080f7590cc8dabac8b6af4a6cd1f1aa9 parent e7dd3e9f90aa1815253a3156a39cf76f3212ece3 Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sat, 7 Nov 2015 01:37:03 -0800 Allow customization of config.h via config.def.h Diffstat:
| M | .gitignore | | | 1 | + |
| M | Makefile | | | 3 | +++ |
| M | choices.c | | | 1 | + |
| R | config.h -> config.def.h | | | 0 |
4 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ fzy fzytest *.o +config.h diff --git a/Makefile b/Makefile @@ -25,6 +25,9 @@ fzy: fzy.o match.o tty.o choices.o %.o: %.c config.h $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< +config.h: + cp config.def.h config.h + install: fzy mkdir -p $(DESTDIR)$(BINDIR) cp fzy $(DESTDIR)$(BINDIR)/ diff --git a/choices.c b/choices.c @@ -89,6 +89,7 @@ const char *choices_get(choices_t *c, size_t n) { return NULL; } } + double choices_getscore(choices_t *c, size_t n) { return c->results[n].score; } diff --git a/config.h b/config.def.h