https://github.com/kevinmbeaulieu/fuzzy-open-file
Fuzzy-search for, and open files (macOS)
https://github.com/kevinmbeaulieu/fuzzy-open-file
cli command-line-tool fuzzy-search macos
Last synced: 3 months ago
JSON representation
Fuzzy-search for, and open files (macOS)
- Host: GitHub
- URL: https://github.com/kevinmbeaulieu/fuzzy-open-file
- Owner: kevinmbeaulieu
- Created: 2017-01-02T21:28:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T19:50:55.000Z (over 9 years ago)
- Last Synced: 2025-03-21T21:44:27.322Z (over 1 year ago)
- Topics: cli, command-line-tool, fuzzy-search, macos
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fuzzy-search for, and open files.
Uses Spotlight to search for a file containing all the characters in the query in that order (i.e., file name matches the regex `/^.*m.*y.*q.*u.*e.*r.*y.*$/`. Built for macOS.
I recommend creating an alias such as `alias fof=fuzzy-open-file`.
Usage: `fuzzy-open-file [-a ] [-h] [-p ] [--vim] query`
Options:
-a Opens with the specified application.
-h, --help Print this help message and exit.
-p, --path Search only within the specified path (default: ~).
--vim Opens file with vim.
Examples:
~$ fuzzy-open-file curdes.ske # open ~/Documents/CurrentDesign.sketch
~$ fuzzy-open-file sl.p # open ~/Documents/Friday's\ Presentation/slides.pdf
Install (using Prezto/zsh):
1. Clone this repo into `~/.zprezto/modules/fuzzy-open-file
2. Append 'fuzzy-open-file' 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`