{"id":51680368,"url":"https://github.com/mather/igt","last_synced_at":"2026-07-15T12:39:56.474Z","repository":{"id":370437800,"uuid":"1294806167","full_name":"mather/igt","owner":"mather","description":"Interactive gitignore CLI - TUI tool for managing .gitignore templates","archived":false,"fork":false,"pushed_at":"2026-07-09T09:10:12.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-09T09:10:21.327Z","etag":null,"topics":["bubbletea","cli","gitignore","gitignore-generator","go","golang","interactive","tui"],"latest_commit_sha":null,"homepage":null,"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/mather.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":"2026-07-09T07:22:33.000Z","updated_at":"2026-07-09T08:27:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mather/igt","commit_stats":null,"previous_names":["mather/igt"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mather/igt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mather%2Figt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mather%2Figt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mather%2Figt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mather%2Figt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mather","download_url":"https://codeload.github.com/mather/igt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mather%2Figt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35505612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bubbletea","cli","gitignore","gitignore-generator","go","golang","interactive","tui"],"created_at":"2026-07-15T12:39:52.106Z","updated_at":"2026-07-15T12:39:56.462Z","avatar_url":"https://github.com/mather.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# igt - Interactive gitignore CLI\n\n`igt` (**i**gnore + **T**UI) is an interactive CLI tool for managing `.gitignore` templates from the official [github/gitignore](https://github.com/github/gitignore) repository.\n\n## Features\n\n- 🎨 **Interactive TUI** - Beautiful terminal UI with fuzzy search and multi-select\n- 📦 **Smart Caching** - Local cache with configurable TTL (default 7 days)\n- 🔄 **Section Management** - Update templates without losing custom rules\n- 🌐 **GitHub Integration** - Fetch templates directly from github/gitignore\n- 🚀 **Fast \u0026 Lightweight** - Single binary with no dependencies\n- 🔍 **Fuzzy Search** - Quickly find templates with incremental filtering\n- 📋 **Preview Mode** - Dry-run to see changes before applying\n\n## Installation\n\n### Homebrew (macOS/Linux)\n\n```bash\nbrew tap mather/igt\nbrew install igt\n```\n\n### Go Install\n\n```bash\ngo install github.com/mather/igt/cmd/igt@latest\n```\n\n### Build from source\n\n```bash\ngit clone https://github.com/mather/igt.git\ncd igt\ngo build -o igt ./cmd/igt\n```\n\n## Usage\n\n### Interactive Mode\n\nSimply run `igt` to launch the interactive template selector:\n\n```bash\nigt\n```\n\nUse the arrow keys to navigate, `space` or `tab` to toggle selection, `enter` to confirm, and `esc` to cancel.\n\n### Non-Interactive Mode\n\nPass template names as arguments to skip the TUI:\n\n```bash\nigt Go Node Python\n```\n\n### List Available Templates\n\nShow all available templates grouped by category:\n\n```bash\nigt --list\n```\n\nSearch for specific templates:\n\n```bash\nigt --list | grep -i python\n```\n\n### Preview Changes\n\nUse dry-run mode to preview what would be added:\n\n```bash\nigt --dry-run Go Node\n```\n\n### Refresh Cache\n\nForce refresh the template cache from GitHub:\n\n```bash\nigt --refresh\n```\n\n### Custom Output Path\n\nSpecify a custom output file:\n\n```bash\nigt --output path/to/.gitignore Go\n```\n\n## How It Works\n\n### Template Sections\n\n`igt` manages templates using marked sections in your `.gitignore`:\n\n```gitignore\n# Your custom rules\n*.log\n/dist/\n\n### igt: Go ###\n*.exe\n*.test\n### igt: Go ###\n\n### igt: Node ###\nnode_modules/\nnpm-debug.log\n### igt: Node ###\n```\n\nWhen you re-run `igt` and select templates:\n- Existing managed sections (between `### igt: Name ###` markers) are updated\n- Your custom rules (outside markers) are preserved\n- New templates are added at the end\n- The `igt:` prefix prevents conflicts with template content\n\n### Caching\n\nTemplates are cached locally in `~/.cache/igt/templates/` with a 7-day TTL:\n- First run downloads the entire repository as a zip archive (one HTTP request)\n- Subsequent runs use cached templates\n- Cache automatically refreshes after TTL expires\n- Use `--refresh` to force immediate update\n\n### Offline Support\n\nSince `igt` downloads the entire repository once and caches it locally:\n- No rate limiting issues\n- Works offline after initial download\n- Fast subsequent operations\n\n## Command-Line Options\n\n```\nUsage:\n  igt [flags] [\u003ctemplate\u003e...]\n\nFlags:\n  -o, --output string   Output file path (default: .gitignore)\n  -r, --refresh         Force refresh cache\n  -l, --list            List all templates\n  -n, --dry-run         Dry run mode (preview changes)\n  -h, --help            Show help\n  -v, --version         Show version\n\nExamples:\n  igt                   # Interactive mode\n  igt Go Node           # Non-interactive mode\n  igt -l | grep -i go   # List and search templates\n  igt -n Go             # Preview changes\n  igt -r                # Refresh cache and select\n```\n\n## Template Categories\n\nTemplates are organized into three categories:\n\n- **Language** - Programming language-specific templates (e.g., Go, Python, Java)\n- **Global** - OS and editor-specific templates (e.g., macOS, Windows, Vim)\n- **Community** - Community-contributed templates\n\n## Development\n\n### Project Structure\n\n```\nigt/\n├── cmd/igt/           # CLI entry point\n├── internal/\n│   ├── fetcher/       # GitHub API \u0026 caching\n│   ├── merger/        # .gitignore parser \u0026 merger\n│   ├── template/      # Data models\n│   └── ui/            # Bubble Tea TUI\n├── go.mod\n└── README.md\n```\n\n### Running Tests\n\n```bash\ngo test ./internal/... -v\n```\n\n### Building\n\n```bash\ngo build -o igt ./cmd/igt\n```\n\n## Similar Tools\n\n- [gibo](https://github.com/simonwhitaker/gibo) - Command-line gitignore template manager\n- [gi](https://github.com/edouard-lopez/gi) - CLI for generating .gitignore files\n\n`igt` differentiates itself with:\n- Interactive TUI with fuzzy search\n- Managed sections that preserve custom rules\n- Built-in caching with TTL\n\n## License\n\nMIT\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmather%2Figt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmather%2Figt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmather%2Figt/lists"}