Skip to content

Respect .gitignore in @ file-reference autocomplete#473

Open
yoshibase wants to merge 1 commit into
huggingface:mainfrom
yoshibase:fix/issue-436-respect-gitignore
Open

Respect .gitignore in @ file-reference autocomplete#473
yoshibase wants to merge 1 commit into
huggingface:mainfrom
yoshibase:fix/issue-436-respect-gitignore

Conversation

@yoshibase

@yoshibase yoshibase commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Fixes #436.

@ file-reference completions in the TUI walked the workspace with a hardcoded denylist (node_modules, .git, etc.) but ignored .gitignore.

Changes

  • Add tau_coding.gitignore to parse the project-root .gitignore
  • Filter @ completion candidates (including paths under ignored directories and *.ext patterns)

Test plan

  • uv run pytest tests/test_gitignore.py
  • uv run pytest tests/test_tui_autocomplete.py -k file_reference_completion_respects_gitignore
  • uv run ruff check on changed files

Fixes huggingface#436. Parse the project root .gitignore and skip ignored paths when building @ file-reference autocomplete suggestions.
@yoshibase
yoshibase requested a review from alejandro-ao as a code owner July 24, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect .gitignore

1 participant