Giter Club home page Giter Club logo

found's Introduction

Overview

Found is a simple wrapper script over locate and xdg-open. It searches files with locate and let you to choose the file to open interactively.

Usage

Check out found and put the script into one of your PATH directories. Call found with some terms that appears in the target file name. For example:

$ found lamport pdf

Sample output:

[1] 568998.Lamport - 1998 - The part-time parliament.pdf.xml
[2] 595489.Lamport - 1998 - The part-time parliament-annotated.pdf.xml
[3] lamport-paxos.pdf
[4] Cheap paxos - Lamport, Massa - 2004.pdf
[5] Consensus on transaction commit - Gray, Lamport - 2006.pdf
[6] Fast Paxos - Lamport - 2006.pdf
[7] LATEX A Document Preparation System User's Guide and Reference Manual - Lamport - 1986.pdf
[8] LaTeX2e The macro package for TeX - Lamport - 1994.pdf
[9] Paxos made simple - Lamport - 2001.pdf
[10] Solved problems, unsolved problems and non-problems in concurrency - Lamport - 1985.pdf
[11] Specifying systems The TLA language and tools for hardware and software engineers - Lamport - 2002.pdf
[12] The Byzantine Generals Problem - Lamport, Shostak, Pease - 1982.pdf
[13] The part-time parliament - Lamport - 1998.pdf
[14] Time, clocks, and the ordering of events in a distributed system - Lamport - 1978.pdf
[15] Using Time Instead of Timeout for Fault-Tolerant Distributed Systems. - Lamport - 1984.pdf
[16] Vertical paxos and primary-backup replication - Lamport, Malkhi, Zhou - 2009.pdf

Which file to open: 

Then you may choose the file to open. If there's only one match, the file will be opened directly.

Behind the scene

Found is deadly simple. First, it joins all the terms from the command line into a locate query, e.g.:

$ found lamport pdf

turns into:

$ locate -b -i "*lamport*pdf*"

After you specified the file to open, found will call xdg-open to open the file with the most appropriate program.

found's People

Contributors

liancheng avatar

Watchers

 avatar  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.