0.0.23 • Published 7 years ago

searchy v0.0.23

Weekly downloads
5
License
WTFPL
Repository
github
Last release
7 years ago

Searchy

searchy demo

Simple interactive search for Node, inspired by percol and fzf. It works as a standalone program you can put in bash pipes or as a menu for inside your own application.

Note: if you install node-migemo it will be used to make matching Japanese text easier.

Command line example

npm install -g searchy
echo -e "hsif\neip\nekac" | searchy | rev
# output will be a word spelled correctly!

Case matching uses "smartcase" like Vim; matches are not case-sensitive unless there is a capital letter in the query.

Node example

var search = require("searchy").search;

search("one two three four five six panda fish パンダ フライパン 日本語 日本橋".split(" "), function(choice){
  console.log("You picked " + choice + "! Congratulations!");
});

Useful techniques

Searchy your shell history for that command you can't quite remember by adding this to your .bashrc: (inspired by hstr)

function hh () {
  $(history | cut -c 8- | awk '!seen[$0]++' | searchy)
}
# add this line to replace the default history search:
bind -x $'"\C-r":hh'

License

WTFPL, do as you please. -POLM

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago