{"id":44454482,"url":"https://github.com/akito19/fuzzy-jump","last_synced_at":"2026-05-24T12:03:51.763Z","repository":{"id":334243485,"uuid":"1140551167","full_name":"akito19/fuzzy-jump","owner":"akito19","description":"fj - A fuzzy directory jump tool that extends `cd` command. ","archived":false,"fork":false,"pushed_at":"2026-01-29T07:38:16.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-29T22:50:54.291Z","etag":null,"topics":["bash","cli","fish","fj","zig","zsh"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akito19.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-23T12:41:18.000Z","updated_at":"2026-01-29T07:30:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/akito19/fuzzy-jump","commit_stats":null,"previous_names":["akito19/z-jump","akito19/fuzzy-jump"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/akito19/fuzzy-jump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akito19%2Ffuzzy-jump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akito19%2Ffuzzy-jump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akito19%2Ffuzzy-jump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akito19%2Ffuzzy-jump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akito19","download_url":"https://codeload.github.com/akito19/fuzzy-jump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akito19%2Ffuzzy-jump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29373841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","fish","fj","zig","zsh"],"created_at":"2026-02-12T17:09:40.032Z","updated_at":"2026-05-24T12:03:51.749Z","avatar_url":"https://github.com/akito19.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fj - Fuzzy Directory Jump\n\nA fuzzy directory jump tool that extends `cd`. It extracts directory navigation history from your shell history, scores entries using frecency (frequency + recency), and filters candidates with fuzzy matching. When multiple candidates exist, it presents a peco-like interactive TUI for selection.\n\n## Features\n\n- Automatic extraction of `cd` commands from shell history (bash/zsh)\n- Frecency scoring (prioritizes frequently used and recently accessed directories)\n- Fuzzy matching with basename-priority scoring\n- Interactive TUI with real-time filtering\n- Pipe input support (use with `ghq`, `fd`, etc.)\n- UTF-8 support (works with non-ASCII directory names)\n\n## Installation\n\n### Quick Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/akito19/fuzzy-jump/main/install.sh | sh\n```\n\nYou can also specify the install directory:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/akito19/fuzzy-jump/main/install.sh | FJ_INSTALL_DIR=/usr/local/bin sh\n```\n\n### Build from Source\n\nRequires Zig 0.16.0 or later.\n\n```bash\ngit clone https://github.com/akito19/fuzzy-jump.git\ncd fuzzy-jump\nzig build -Doptimize=ReleaseFast\ncp zig-out/bin/fj ~/.local/bin/\n```\n\n## Shell Integration\n\n### Zsh\n\nAdd to your `~/.zshrc`:\n\n```zsh\neval \"$(fj init zsh)\"\n```\n\n### Bash\n\nAdd to your `~/.bashrc`:\n\n```bash\neval \"$(fj init bash)\"\n```\n\n### Fish\n\nAdd to your `~/.config/fish/config.fish`:\n\n```fish\nfj init fish | source\n```\n\n### cd Override (Optional)\n\nYou can optionally enable cd override, which falls back to `fj` when the normal `cd` command fails:\n\n```bash\n# Bash/Zsh\nexport FJ_CD_OVERRIDE=1\neval \"$(fj init zsh)\"  # or bash\n\n# Fish\nset -gx FJ_CD_OVERRIDE 1\nfj init fish | source\n```\n\nWith this enabled:\n\n| Command | Behavior |\n|---------|----------|\n| `cd` | Go to `$HOME` (normal) |\n| `cd -` | Go to previous directory (normal) |\n| `cd /existing/path` | Normal cd |\n| `cd proj` | If not found, search with `fj proj` |\n\n## Usage\n\n```\nfj [OPTIONS] [QUERY]\nfj init \u003cSHELL\u003e\nfj import \u003cSOURCE\u003e\nfj self-update\n\u003ccommand\u003e | fj [QUERY]\n```\n\n### Arguments\n\n- `[QUERY]` - Fuzzy search pattern for directory name\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `init \u003cSHELL\u003e` | Print shell integration script (`bash`, `zsh`, or `fish`) |\n| `import \u003cSOURCE\u003e` | Import history from shell history file (`--zsh-history`, `--bash-history`) |\n| `self-update` | Update fj to the latest version |\n\n### Options\n\n| Option | Description |\n|--------|-------------|\n| `-h`, `--help` | Show help message |\n| `-v`, `--version` | Show version |\n| `--debug-history` | Show parsed history entries |\n\n### Import Sources\n\n| Source | Description |\n|--------|-------------|\n| `--zsh-history` | Import from `~/.zsh_history` (or `$HISTFILE`) |\n| `--bash-history` | Import from `~/.bash_history` (or `$HISTFILE`) |\n\n### Pipe Input\n\n`fj` can read paths from stdin, allowing integration with tools like `ghq`, `fd`, `find`, etc.\n\n```bash\n# Select from ghq-managed repositories\nghq list -p | fj\n\n# Select from fd results\nfd -t d | fj\n\n# Filter piped input with a query\nghq list -p | fj proj\n```\n\n### Examples\n\n```bash\n# Launch interactive mode\nfj\n\n# Search for directories matching \"proj\"\nfj proj\n\n# Jump to a directory starting with \"work\"\nfj work\n\n# Import directories from zsh history (bootstrap)\nfj import --zsh-history\n\n# Update to the latest version\nfj self-update\n\n# Select from ghq repositories and cd into it\ncd \"$(ghq list -p | fj)\"\n```\n\n## Interactive Keys\n\n| Key | Action |\n|-----|--------|\n| `↑` / `Ctrl-P` | Move to previous entry |\n| `↓` / `Ctrl-N` | Move to next entry |\n| `Enter` | Select directory |\n| `Esc` / `Ctrl-C` | Cancel |\n| `Backspace` | Delete character |\n| `Ctrl-U` | Clear input |\n| `Ctrl-W` | Delete word |\n\n## How It Works\n\n1. **History Parsing**: Extracts `cd` commands from `~/.zsh_history` or `~/.bash_history`\n2. **Frecency Scoring**: Calculates score based on visit count and last access time\n3. **Fuzzy Matching**: Matches query against paths with basename priority\n4. **TUI Selection**: Presents interactive selection when multiple candidates exist\n\n## Migration from zj\n\nIf you are upgrading from a previous version (`zj`), you need to manually migrate your history file:\n\n```bash\nmv ~/.local/share/zj ~/.local/share/fj\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakito19%2Ffuzzy-jump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakito19%2Ffuzzy-jump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakito19%2Ffuzzy-jump/lists"}