Git Product home page Git Product logo

ft's Introduction

Find Turbo Logo

ft - Find Turbo

Your find command on turbo

GitHub stars GitHub forks GitHub issues GitHub license GitHub contributors GitHub last commit

ft (Find Turbo) is simple command-line tool designed to enhance the file/directory search capabilities for Unix-based systems.

Initially, my objective was simply to create a wrapper for the standard Linux find command to prevent it from returning "Permission denied" errors as part of its results, when it tries to read files the user don't own. However, as you see, I ended up doing something more.

Much like its inspiration, ft aims to provide a more efficient, user-friendly, and visually appealing experience for searching files and directories. It leverages the power of regex patterns for search criteria and the Rich library for elegant formatting, making your search results not only precise but also easier to read and interpret.

Key Features

  • Rich Formatting: With the Rich library integration, search results are displayed with syntax highlighting and beautiful formatting, making them more accessible and informative.
  • Regex Pattern Searches: Use regular expressions to define complex search patterns for file and directory names, offering you nuanced control over search results.
  • Flexible Search Options: Choose between searching file names, directory names, or both, with additional options for case sensitivity, providing a tailored search experience to fit your needs.
  • Intuitive Progress Display: Features a fancy progress animation with rich visual feedback during search operations, keeping you informed of the ongoing process.

Why Use ft?

ft is built for anyone who regularly works with files and directories and needs an enhanced search tool that goes beyond the capabilities of the traditional find command. Whether you're a developer, system administrator, or just a user who loves organizing and navigating through extensive file systems efficiently, ft offers:

  • Enhanced search precision through regex patterns.
  • A visually pleasing and informative output of search results.
  • Customizable search parameters to suit various needs and preferences.

Installation

You can install ft using curl, wget, or by manually cloning the repository and installing dependencies.

Using Curl

curl -sSL "https://raw.githubusercontent.com/felipechierice/ft/main/install.sh" | bash -s -- --clone

Using Wget

wget -qO- "https://raw.githubusercontent.com/felipechierice/ft/main/install.sh" | bash -s -- --clone

Manual Installation

If you prefer to install ft manually, follow these steps:

  1. Clone the repository:
git clone https://github.com/felipechierice/ft
  1. Navigate to the ft directory:
cd ft
  1. Execute the installation script
./install.sh

Ensure you have Python 3.6 or later installed on your system to use ft.

Usage

ft is simple to use, with a syntax that allows for versatile search configurations.

Basic Usage

  • Search for files or directories containing a specific pattern: Replace <search_path> with your target directory and <search_pattern> with your regex pattern.

    ft <search_path> <search_pattern>

Advanced Options

  • Case-sensitive search: Add the -c or --case-sensitive flag for case-sensitive searches.

    ft <search_path> <search_pattern> -c
  • Search only files or directories: Use -f or --files to search only file names, and -d or --directories for directory names.

    ft <search_path> <search_pattern> -f
    ft <search_path> <search_pattern> -d

Examples

# Search for all Python files in the current directory
ft . "\.py$" -f

# Case-sensitive search for directories matching 'Data'
ft /home/user "Data" -d -c

Uninstalling

It is as simple as executing the following script:

~/.local/share/ft/uninstall.sh

If you have installed ft in a different directory, just make sure you change it in the command.

Contributing

Contributions, bug reports, and feature requests are welcome! Feel free to fork the repository and submit pull requests.

License

ft is open-source software licensed under the MIT license, making it freely available for personal and commercial use.

ft's People

Contributors

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