feat(index): add --hidden flag for dot-prefixed files - #176
Merged
Conversation
Add a `--hidden` CLI flag that includes hidden (dot-prefixed) files and directories in both search and indexing. Off by default to preserve the current "skip hidden" behavior. The flag threads through `SearchOptions.hidden` and `FileCollectionOptions.show_hidden` to the `ignore` crate's `WalkBuilder.hidden(!show_hidden)` in `ck-index::collect_files`, which is the single walker shared by the search path (`ck-engine`) and the index-building path (embedding + lexical corpus). Composes independently with `--no-ignore` / `--no-ckignore`. Adds two integration tests (regex search path and lexical index path), README docs, and a CHANGELOG entry. Re-implements #97 (original by @peterkc), cleanly on current main. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 tasks
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.
Re-implements #97 (original by @peterkc) cleanly on current main — the original branch was too stale to rebase (touched since-removed files).
Changes
--hiddenflag: "Include hidden (dot-prefixed) files and directories"FileCollectionOptions.show_hidden/SearchOptions.hidden→WalkBuilder.hidden(!show_hidden)--no-ignore/--no-ckignore(dot-visibility vs ignore-file honoring are separate)Validation
🤖 Generated with Claude Code