0.0.23 • Published 8 years ago

searchy v0.0.23

Weekly downloads
5
License
WTFPL
Repository
github
Last release
8 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

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago