{"id":28204698,"url":"https://github.com/ajaikumarvs/zx","last_synced_at":"2026-02-17T23:02:50.835Z","repository":{"id":286164418,"uuid":"960579789","full_name":"ajaikumarvs/zx","owner":"ajaikumarvs","description":"Fast, fuzzy, colorized grep-like CLI written in Go. Blazing speed. Smart matches. Pretty output.","archived":false,"fork":false,"pushed_at":"2025-11-05T15:01:23.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-05T17:10:25.354Z","etag":null,"topics":["regex","search"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajaikumarvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"dco":null,"cla":null}},"created_at":"2025-04-04T17:19:30.000Z","updated_at":"2025-11-05T15:01:27.000Z","dependencies_parsed_at":"2025-04-04T18:29:50.008Z","dependency_job_id":"c906206d-d8c7-4121-87a6-cd111faed14f","html_url":"https://github.com/ajaikumarvs/zx","commit_stats":null,"previous_names":["ajaikumarvs/zx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajaikumarvs/zx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaikumarvs%2Fzx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaikumarvs%2Fzx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaikumarvs%2Fzx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaikumarvs%2Fzx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajaikumarvs","download_url":"https://codeload.github.com/ajaikumarvs/zx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaikumarvs%2Fzx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29561783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["regex","search"],"created_at":"2025-05-17T07:09:37.256Z","updated_at":"2026-02-17T23:02:50.825Z","avatar_url":"https://github.com/ajaikumarvs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zx\n\n**zx** is a powerful, interactive terminal-based search tool with a modern TUI interface. Built in Go with Bubble Tea, it combines the power of regex search with intuitive file management and smart performance optimization.\n\n---\n\n## Features\n\n### **Interactive TUI Interface**\n- **File Browser Mode**: Navigate directories with vim-style keys\n- **Search Input Mode**: Enter regex patterns with real-time feedback\n- **Search Results Mode**: Browse matches with syntax highlighting\n- **Progress Mode**: Real-time search progress with ETA calculations\n\n### **Smart File Management**\n- **Multi-Selection**: Select files and directories for targeted searches\n- **Directory Navigation**: Enter/exit directories seamlessly\n- **Selection Modes**: \n  - `Space`: Toggle individual files/directories\n  - `d`: Toggle directory selection (multiple allowed)\n  - `f`: Select all files\n  - `Ctrl+D`: Select all directories\n  - `a`: Select all items\n  - `A`: Deselect all\n\n### **Advanced Search Capabilities**\n- **Regex Support**: Full regular expression pattern matching\n- **Parallel Processing**: Multi-threaded search with configurable workers\n- **Smart Filtering**: Automatic binary file detection and exclusion\n- **Memory Management**: Configurable limits for large datasets\n- **Progress Tracking**: Real-time progress with file count and data processed\n\n### **Performance Optimization**\n- **Auto-Configuration**: Automatically adjusts settings based on dataset size\n- **Large File Handling**: Configurable file size limits (100MB - 2GB)\n- **Concurrent Workers**: Scales from 10 to 100+ workers based on CPU cores\n- **Memory Limits**: Prevents memory exhaustion on massive datasets\n- **Binary Detection**: Skips binary files for faster processing\n\n### **Analysis \u0026 Diagnostics**\n- **Folder Analysis**: Shows file statistics and recommendations\n- **Configuration Mode**: Tune performance settings manually\n- **Error Reporting**: Detailed error messages and suggestions\n- **Search Statistics**: File counts, processing time, and match statistics\n\n---\n\n## Quick Start\n\n### Interactive Mode (Recommended)\n```bash\n./zx\n```\nNavigate with arrow keys or vim keys (`j`/`k`), select files/directories, and press `s` to search.\n\n### Command Line Mode (Legacy)\n```bash\n./zx \"pattern\" /path/to/search\n```\n\n---\n\n## Key Bindings\n\n### File Browser Mode\n| Key | Action |\n|-----|--------|\n| `↑`/`k` | Move up |\n| `↓`/`j` | Move down |\n| `Enter` | Enter directory / Toggle file selection |\n| `Space` | Toggle file/directory selection |\n| `Ctrl+Enter` | Toggle directory selection (without entering) |\n| `d` | Toggle directory selection (multiple allowed) |\n| `f` | Select all files only |\n| `Ctrl+D` | Select all directories |\n| `a` | Select all files and directories |\n| `A` | Deselect all |\n| `s`/`/` | Start search |\n| `c` | Configuration mode |\n| `i` | Analyze folder structure |\n| `r` | Refresh directory |\n| `h`/`?` | Toggle help |\n| `q`/`Ctrl+C` | Quit |\n\n### Search Input Mode\n| Key | Action |\n|-----|--------|\n| `Enter` | Start search |\n| `Esc`/`Ctrl+C` | Cancel |\n| `Backspace` | Delete character |\n\n### Search Results Mode\n| Key | Action |\n|-----|--------|\n| `↑`/`k` | Move up through results |\n| `↓`/`j` | Move down through results |\n| `g`/`Home` | Go to first result |\n| `G`/`End` | Go to last result |\n| `s`/`/` | Start new search |\n| `Esc`/`q` | Return to file browser |\n\n---\n\n## Configuration\n\n### Performance Settings\nAccess configuration mode with `c` key:\n\n- **Max File Size**: 100MB → 1GB (files larger than limit are skipped)\n- **Max Results**: 10K → 50K (maximum search results in memory)\n- **Concurrency**: 50 → 2x CPU cores (parallel worker threads)\n\n### Auto-Configuration\nThe tool automatically analyzes your dataset and adjusts settings:\n- **Small projects** (\u003c 1K files): Conservative settings\n- **Medium projects** (1K-10K files): Balanced settings  \n- **Large projects** (10K+ files): High-performance settings\n\n---\n\n## Performance\n\n### Optimized for Large Datasets\n- **100GB+ codebases**: Tested and optimized\n- **Parallel processing**: Utilizes all CPU cores\n- **Memory efficient**: Streaming search prevents memory exhaustion\n- **Smart filtering**: Skips binary files, hidden files, and oversized files\n- **Progress tracking**: Real-time ETA for long searches\n\n### Benchmark Examples\n- **Linux kernel** (~70K files): ~30 seconds\n- **Chromium** (~300K files): ~2-3 minutes\n- **Small projects** (\u003c1K files): \u003c1 second\n\n---\n\n## Visual Features\n\n- **Syntax Highlighting**: Matches highlighted in search results\n- **File Metadata**: Shows file sizes, modification times\n- **Progress Bars**: Visual progress indication with percentages\n- **Status Messages**: Clear feedback for all operations\n- **Error Handling**: Graceful error display with suggestions\n- **Modern UI**: Clean, responsive terminal interface\n\n---\n\n## Search Examples\n\n### Basic Patterns\n```\nfunc.*main          # Find function definitions containing 'main'\nTODO|FIXME          # Find TODO or FIXME comments\nerror.*return       # Find error handling patterns\nimport.*fmt         # Find fmt imports\n```\n\n### Advanced Regex\n```\n\\b[A-Z][a-z]+Error\\b    # Find custom error types\nfunc\\s+\\w+\\([^)]*\\)     # Find function signatures\n//.*TODO.*              # Find TODO comments\n```\n\n---\n\n## Building from Source\n\n```bash\ngit clone https://github.com/ajaikumarvs/zx\ncd zx\ngo build -o zx\n```\n\n### Dependencies\n- Go 1.19+\n- [Bubble Tea](https://github.com/charmbracelet/bubbletea) - TUI framework\n- [Lipgloss](https://github.com/charmbracelet/lipgloss) - Styling\n\n\n---\n\n## License\n\nMIT License - see LICENSE file for details.\n\n---\n\n## Acknowledgments\n\n- Built with [Bubble Tea](https://github.com/charmbracelet/bubbletea) TUI framework\n- Inspired by modern terminal tools like `fzf`, `ripgrep`, and `fd`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaikumarvs%2Fzx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajaikumarvs%2Fzx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaikumarvs%2Fzx/lists"}