feat: add .ckignore file support for persistent exclusion patterns - #68
Merged
Conversation
Introduces .ckignore file to allow users to customize file exclusion patterns that persist across searches. This addresses issues #66 and #67 by providing a clean way to exclude media files and other non-code assets from semantic indexing. Key changes: - Auto-create .ckignore on first index with sensible defaults - Exclude images, videos, audio, binaries, archives by default - Exclude JSON/YAML config files (issue #27) - Add --no-ckignore flag to bypass .ckignore - Patterns are additive: .gitignore + .ckignore + CLI + defaults - Uses same glob pattern syntax as .gitignore - Added comprehensive tests for .ckignore functionality - Updated README with usage examples and rationale Default exclusions include: - Images: *.png, *.jpg, *.gif, *.svg, etc. - Video: *.mp4, *.avi, *.mov, etc. - Audio: *.mp3, *.wav, *.flac, etc. - Binaries: *.exe, *.dll, *.so, etc. - Archives: *.zip, *.tar, *.rar, etc. - Data files: *.db, *.sqlite, etc. - Config: *.json, *.yaml Fixes #66, Fixes #67 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Sep 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces
.ckignorefile to allow users to customize file exclusion patterns that persist across searches. This provides a clean solution for excluding media files and other non-code assets from semantic indexing.Changes
Core Functionality
.ckignoreat repository root on first index with sensible defaults--excludeflags each time.gitignore+.ckignore+ CLI + defaults all merge together--no-ckignoreflag: Bypass.ckignorepatterns when neededDefault Exclusions
*.png,*.jpg,*.gif,*.svg,*.webp, etc.*.mp4,*.avi,*.mov,*.mkv, etc.*.mp3,*.wav,*.flac, etc.*.exe,*.dll,*.so, etc.*.zip,*.tar,*.rar, etc.*.db,*.sqlite, etc.*.json,*.yaml(addresses ck should probably ignore JSON and YAML files by default #27)Testing
--no-ckignoreflag bypasses patternsDocumentation
--no-ckignoreflagCloses
Fixes #66 - Indexing should probably ignore image/video files by default
Fixes #67 - Exclude options should persist on later usage
Addresses #27 - ck should probably ignore JSON and YAML files by default
🤖 Generated with Claude Code