An open API service indexing awesome lists of open source software.

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)

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`