All Projects → jaimebuelta → Ffind

jaimebuelta / Ffind

Licence: mit
A sane replacement for find

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ffind

Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+15908.87%)
Mutual labels:  cli, search, regex
Ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Stars: ✭ 28,564 (+22935.48%)
Mutual labels:  cli, search, regex
Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (-51.61%)
Mutual labels:  cli, search, regex
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (+74.19%)
Mutual labels:  cli, search
Grab
experimental and very fast implementation of a grep
Stars: ✭ 230 (+85.48%)
Mutual labels:  search, regex
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+3808.87%)
Mutual labels:  cli, regex
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+10495.16%)
Mutual labels:  cli, search
kaki
Search tool designed for developers
Stars: ✭ 41 (-66.94%)
Mutual labels:  search, regex
Ff
Find files (ff) by name, fast!
Stars: ✭ 257 (+107.26%)
Mutual labels:  cli, search
Gosearch
🔍 Search the Go packages via command-line
Stars: ✭ 48 (-61.29%)
Mutual labels:  cli, search
Docker registry cli
Docker Registry CLI - Provides search functionality for Docker Registry (UI and CLI)
Stars: ✭ 48 (-61.29%)
Mutual labels:  cli, search
Lolcate Rs
Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.
Stars: ✭ 191 (+54.03%)
Mutual labels:  search, regex
subst
Search and des... argh... replace in many files at once. Use regexp and power of Python to replace what you want.
Stars: ✭ 20 (-83.87%)
Mutual labels:  search, regex
Ugrep
🔍NEW ugrep v3.1: ultra fast grep with interactive query UI and fuzzy search: search file systems, source code, text, binary files, archives (cpio/tar/pax/zip), compressed files (gz/Z/bz2/lzma/xz/lz4), documents and more. A faster, user-friendly and compatible grep replacement.
Stars: ✭ 626 (+404.84%)
Mutual labels:  search, regex
Crex
Explore, test, and check regular expressions in the terminal.
Stars: ✭ 54 (-56.45%)
Mutual labels:  cli, regex
Simpleaudioindexer
Searching for the occurrence seconds of words/phrases or arbitrary regex patterns within audio files
Stars: ✭ 100 (-19.35%)
Mutual labels:  search, regex
Trienet
.NET Implementations of Trie Data Structures for Substring Search, Auto-completion and Intelli-sense. Includes: patricia trie, suffix trie and a trie implementation using Ukkonen's algorithm.
Stars: ✭ 122 (-1.61%)
Mutual labels:  search
Riko
A Python stream processing engine modeled after Yahoo! Pipes
Stars: ✭ 1,571 (+1166.94%)
Mutual labels:  cli
Symfony Demo App
A Symfony demo application with basic user management
Stars: ✭ 122 (-1.61%)
Mutual labels:  cli
Genesis
Templating, scaffolding and generation tool
Stars: ✭ 122 (-1.61%)
Mutual labels:  cli

ffind v1.3.1 - A sane replacement for command line file search

Downloads Build Status Coverage Status Requirements Status PyPI version codecov

About ffind

ffind allows quick and easy recursive search for files in the command line. Very convenient to find a file you don't know exactly where it is or how it's called in a jungle of directories.

For example, when:

  • Developing code. When it's that .js file? It was called my_feature_something_somethign.js, but not sure on which on of the 30 subdirectories it is. ffind my_feature
  • Searching for a particular funny meme. It was under Images directory, but not sure if it was a .mp4 or .gif and if it was "dancing" or "DANCE"... ffind Images/ danc

See it here in action!

Demo

If you have deal with Unix find, it replaces the cumbersome find . -name '*FILE_PATTERN*' with ffind FILE_PATTERN (plus more niceties).

Main features

  • Search recursively on current directory by default.
  • Ignores hidden and source control files and directories by default, avoiding showing files you don't care.
  • If the FILE_PATTERN is all in lowercase, the search will be case insensitive, unless a flag is set.
  • Will print colorized output in glamorous red (default), except on redirected output.
  • Can delete matched files, making very easy to clean compiled files, like .pyc or .o. Try ffind --delete pyc on your Python project

Common uses:

  • ffind txt to return all text files in current tree structure.
  • ffind ../other_dir txt to return all text files under dir ../other_dir
  • ffind --delete pyc to delete files that contain pyc. Use ffind --delete pyc$ for only files ending in pyc

But wait, there is more!

  • Input filename may be a full regex
  • Regex can affect only the filename (default) or the full path.
  • Follow symlinks by default, but that can be deactivated if necessary to avoid recursion problems
  • Works in Python 2.7 (deprecated since version v1.3.1) and Python 3. Please use Python 3.5 or later. It's much faster!
  • Can execute commands on matched files
  • Experimental fuzzy search

Install

Requires pip, the tool for installing Python packages. You already have it installed by default on Python3!

pip install ffind

All arguments

Call ffind --help to display all the available arguments.

usage: ffind.py [-h] [-p] [--nocolor] [--nosymlinks] [--hidden] [-c]  [-i]
            [--delete | --exec "command" | --module "module_name args" | --command "program"]
            [--ignore-vcs] [-f] [--version]
            [dir] filepattern

Search file name in directory tree

More information here

Environment variables

Environment variables in your shell can be used to set up default options and parameters. See here for more information.

Manual install

From the source code directory:

python setup.py install

Test

To test ffind, you must install cram (you can use pip install cram). To run all the tests, run make test. This runs the tests on both Python 2 and Python 3. Running just make runs the test for Python 3.

The tests are under the tests directory; more tests are welcome.

License

The MIT License (MIT)

Copyright (c) 2013-2018 Jaime Buelta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].