[PR #1277] [CLOSED] feat: allow using gitignore'd files with a config option #9871

Closed
opened 2026-02-16 18:14:18 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1277
Author: @rstacruz
Created: 7/24/2025
Status: Closed

Base: devHead: feat-include-ignored-files


📝 Commits (4)

  • f934c9d feat: add include_ignored_files config option
  • 9edac19 feat: add ripgrep command builder tests
  • 7c1a3ce docs: clarify config.mdx ignore file behavior
  • 78fe87a docs: add caution note on including node_modules in config

📊 Changes

4 files changed (+76 additions, -1 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+4 -0)
packages/opencode/src/file/ripgrep.test.ts (+38 -0)
📝 packages/opencode/src/file/ripgrep.ts (+11 -1)
📝 packages/web/src/content/docs/docs/config.mdx (+23 -0)

📄 Description

Problem

  • .gitignore'd files don't show up in @ attachment autocomplete
  • Some people keep AI context notes gitignore'd (see discord convo)

Solution

  • Add include_ignored_files config option to allow users to include ignored files

How did I test this?

  • bun test packages/opencode/src/file/ripgrep.test.ts
  • Manually test it via cd packages/opencode; bun run src/index.ts

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1277 **Author:** [@rstacruz](https://github.com/rstacruz) **Created:** 7/24/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat-include-ignored-files` --- ### 📝 Commits (4) - [`f934c9d`](https://github.com/anomalyco/opencode/commit/f934c9d2f0f85d911c60cb97971645df1247a587) feat: add include_ignored_files config option - [`9edac19`](https://github.com/anomalyco/opencode/commit/9edac19761200febe8ae436652536b875b322a2a) feat: add ripgrep command builder tests - [`7c1a3ce`](https://github.com/anomalyco/opencode/commit/7c1a3cea9d98725447956b2409570fe42d724386) docs: clarify config.mdx ignore file behavior - [`78fe87a`](https://github.com/anomalyco/opencode/commit/78fe87a91e86bf1ae5fac42e14356d285005e743) docs: add caution note on including node_modules in config ### 📊 Changes **4 files changed** (+76 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+4 -0) ➕ `packages/opencode/src/file/ripgrep.test.ts` (+38 -0) 📝 `packages/opencode/src/file/ripgrep.ts` (+11 -1) 📝 `packages/web/src/content/docs/docs/config.mdx` (+23 -0) </details> ### 📄 Description ## Problem - .gitignore'd files don't show up in @ attachment autocomplete - Some people keep AI context notes gitignore'd ([see discord convo](https://discord.com/channels/1391832426048651334/1397365333878243378/1397770448044818575)) ## Solution - Add *include_ignored_files* config option to allow users to include ignored files ## How did I test this? - `bun test packages/opencode/src/file/ripgrep.test.ts` - Manually test it via `cd packages/opencode; bun run src/index.ts` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:18 -05:00
yindo closed this issue 2026-02-16 18:14:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9871