https://github.com/kevinmbeaulieu/fuzzy-open-directory
Fuzzy-search for, and cd into directories (macOS)
https://github.com/kevinmbeaulieu/fuzzy-open-directory
cli command-line-tool fuzzy-search macos
Last synced: 3 months ago
JSON representation
Fuzzy-search for, and cd into directories (macOS)
- Host: GitHub
- URL: https://github.com/kevinmbeaulieu/fuzzy-open-directory
- Owner: kevinmbeaulieu
- Created: 2017-01-02T21:09:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T19:45:10.000Z (over 9 years ago)
- Last Synced: 2025-03-21T21:44:27.433Z (over 1 year ago)
- Topics: cli, command-line-tool, fuzzy-search, macos
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fuzzy-search for, and `cd` into directories.
Uses Spotlight to search for a directory containing all the characters in the query in that order (i.e., directory name matches the regex `/^.*m.*y.*q.*u.*e.*r.*y.*$/`. Built for macOS.
I recommend creating an alias such as `alias fod=fuzzy-open-directory`.
Usage: `fuzzy-open-directory [-h] [-o] [-p ] query`
Options:
-h, --help Print this help message and exit.
-o Open directory in Finder.
-p, --path Search only within the specified path (default: ~).
Examples:
~$ fuzzy-open-directory myproj # cd into ~/Documents/Projects/MyProject
~$ fuzzy-open-directory gdrive # cd into Google Drive
Install (using Prezto/zsh):
1. Clone this repo into `~/.zprezto/modules/fuzzy-open-directory
2. Append 'fuzzy-open-directory' to the line in your `~/.zprezto/runcoms/zpreztorc` which starts with `zstyle ':prezto:load'...`
Install (manually):
1. Clone this repo
2. Add `source /init.zsh` to your shell's runcom (e.g., `~/.bashrc`, `~/.zshrc`