Giter Club home page Giter Club logo

fsquery's Introduction

fsquery

A simple script to let you jump around the file system a little faster.

fsquery is a filesytem search program, like locate, except fsquery is supposed to search the filesytem in real time (locate requires running updatedb each time before use if your filesystem has changes - my files change regularly so locate doesn't work well for me). Currently fsquery is very slow.

fsquery was inspired by jquery (css selectors really), it allows you to send in queries for files, for example:

fsquery components/ *.php

would search for any files ending in .php that have a components parent folder.

in future I would like to extend the queries to allow selecting files by their contents.

I designed fsquery for my own use, this sort of query is very useful for me due to the particular layout of files that I interact with, I have lots of files and folders with similar names and it's useful to be able to query through them to quickly find the ones I'm looking for.

For example, commands of the form:

vim `fsquery --first components/ images/ somefile.php`

or:

cd `fsquery --first components/ images/`

save me some typing when searching for stuff.

in these cases I could probably leave out the images/ parts of the queries and they would still work. It's much shorter than remembering & typing out the whole path.

(actually I have aliased f to fsquery, so it's a little shorter when I use it.)

fsquery's People

Contributors

carl-maxwell avatar

Watchers

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