easy_project_finder is a command-line tool for quickly locating project directories using fuzzy search. It is designed to help developers and teams manage and navigate large codebases or folder structures efficiently.
- Fuzzy Search: Locate directories or files using partial matches.
- Configuration: Customize search roots, maximum results, directory-only filtering, and more.
- Aliases: Assign aliases to root directories for quicker access.
- Automatic Navigation: Automatically change to the found directory.
- User-Friendly CLI: Intuitive command-line options for configuration and usage.
To install easy_project_finder on Windows, run the following PowerShell command as an administrator:
iwr -useb https://raw.githubusercontent.com/shhossain/easy_project_finder/main/installer.ps1 | iexThis command will:
- Download the latest release of
easy_project_finderfrom GitHub. - Install the executable to
C:\Program Files\easy_project_finder. - Add the installation directory to your system's PATH for easy access.
- Set up a PowerShell function (
p) for quick access and navigation to projects.
After installation, use the p function to search for projects by partial names:
p <pattern>Example:
p my_projectThis command will search for directories matching "my_project" and, if found, automatically change to the directory.
Here’s a summary of some useful command-line options:
--config <KEY=VALUE>: Set configuration options likeroot,max_results,only_dirs,default_root.- Example:
p --config root="C:\Projects"
- Example:
--show-config: Display the current configuration and its file location.--dirs-only: Filter results to only directories.--help: Show help information.
Configuration options can be set with the --config flag. Example configuration keys:
- root: Set the main search root or alias paths for project directories.
- max_results: Define the maximum number of results to display (default: 5).
- only_dirs: Set to
trueto only return directory results. - select_option: Enable a numbered list for multiple matches, allowing manual selection.
To view your configuration, use:
p --show-config-
Set Configuration:
p --config root="C:\Code\MyProjects"
-
Show Configuration:
p --show-config
-
Directory-Only Search:
p --dirs-only <pattern>
-
Search with Root Alias:
p my_alias <pattern>
Your configuration is stored in a config.yaml file in the system's configuration directory. You can edit this file directly or use --config commands for updates.
If you encounter issues, ensure that:
- The
installer.ps1script ran successfully. easy_project_finder.exeis inC:\Program Files\easy_project_finder.PATHincludesC:\Program Files\easy_project_finder.