Lightning fast scrollable (f)uzzy (s)earch utility for the terminal, the result of which can be easily provided as an (a)rgument to a custom (c)ommand - comes with tab autocomplete! This repo is intended to contain a collection of applications that make use of fsac, so contributing is highly encouraged :]
Make sure you have Go installed.
Option 1:
git clone
this repo and from the project's root directory:
$ make compile_dirsearch dest=path/to/my/bin_name
Make sure that the executable is in your $PATH
.
Option 2:
Make sure you $GOPATH
is set, then run:
$ go get github.com/solidiquis/fsac/cmd/dirf
Again, this repo will contain a collection of programs which can be compiled independently. Here are the steps to follow if you wish to contribute:
- Make a new directory in
cmd/
named after your program. - Make your program and give it a short catchy name, kind of like
grep
, which is short forglobal regular expression print
. - Add something like this to the top of your
main.go
:
// Installation:
// go get github.com/solidiquis/fsac/cmd/dirf
// Name:
// dirf -> (dir)ectory (f)ind
// Utility:
// Searches through directory tree from working directory and
// copies selection to clipboard.
- Add three new targets to the
Makefile
, usingdirf
as a template:run
,debug
, &compile
. - Make a pull request :]
- https://github.com/sahilm/fuzzy: Awesome string matching algorithm.
- https://github.com/solidiquis/ansigo: Convenient Go-wrapper for various ANSI escapes + keypress detection.