Giter Site home page Giter Site logo

cloudxtreme / pick-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mptre/pick

0.0 1.0 0.0 720 KB

A fuzzy search tool for the command-line

Home Page: https://thoughtbot.com/tools

License: MIT License

Makefile 2.93% Shell 2.83% M4 1.95% C 77.89% Perl 10.90% Perl 6 3.50%

pick-1's Introduction

Pick

pick(1) usage

The pick(1) utility allows users to choose one option from a set of choices using an interface with fuzzy search functionality.

Installation

Arch Linux

A package for Pick is available in the AUR.

curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/pick.tar.gz
tar -xzf pick.tar.gz
cd pick
makepkg -sri

Debian and Ubuntu

A package for Pick is available as of Debian 9 and Ubuntu 15.10.

apt-get install pick

Mac OS X via Homebrew

brew install pick

Mac OS X via MacPorts

sudo port install pick

FreeBSD via Ports

cd /usr/ports/sysutils/pick
make install clean

FreeBSD via pkgng

pkg install pick

From source

  1. Download the latest release from the releases page, optionally check the signature and extract the archive:
wget https://github.com/thoughtbot/pick/releases/download/vVERSION/pick-VERSION.tar.gz
wget https://github.com/thoughtbot/pick/releases/download/vVERSION/pick-VERSION.tar.gz.asc
gpg --verify pick-VERSION.tar.gz.asc
tar -xzf pick-VERSION.tar.gz
  1. Follow the bundled installation instructions:
cd pick-VERSION
less INSTALL.md

Usage

pick(1) reads a list of choices on stdin and outputs the selected choice on stdout. Therefore it is easily used both in pipelines and subshells:

git ls-files | pick | xargs less # Select a file in the current git repository to view in less
cd $(find . -type d | pick)      # Select a directory to cd into

Pick can also easily be used from within Vim both using system() and !. For ready-to-map functions, see the pick.vim Vim plugin. For examples of how to call pick(1) from within Vim, see the pick.vim source code.

Please note: pick requires a fully functional terminal to run and therefore cannot be run from within gvim or MacVim.

See the pick(1) man page for detailed usage instructions and more examples.

Copyright

Copyright (c) 2016 Calle Erlandsson, Anton Lindqvist & thoughtbot.

Lead by Calle Erlandsson & thoughtbot's Stockholm software design and development team.

About thoughtbot

thoughtbot

See our other open source projects or hire us to design, develop, and grow your product.

pick-1's People

Contributors

avgerin0s avatar borstel avatar calleluks avatar croaky avatar ecerulm avatar fornwall avatar gbuella avatar keith avatar mjankowski avatar mptre avatar neelchauhan avatar prahlad37 avatar rheber avatar rosshadden avatar scoreunder avatar srstevenson avatar temochka avatar teoljungberg avatar xuchunyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.