Skip to content

kevinmbeaulieu/fuzzy-open-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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 <path>] 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 <path to this repo>/init.zsh to your shell's runcom (e.g., ~/.bashrc, ~/.zshrc

About

Fuzzy-search for, and cd into directories (macOS)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages