Skip to content

[FEATURE]:Add option to disable .gitignore in file autocomplete #21945

@moriline

Description

@moriline

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently opencode uses .gitignore to filter files in autocomplete/file selection (when typing @filename). This is useful for excluding build artifacts, node_modules, etc.
However, there's no way to disable this behavior when users want to access .gitignored files. For example, if a user has .md files in .gitignore, they cannot see them in autocomplete.
Request: Add a config option to disable .gitignore filtering in file autocomplete, so that all files in the project directory are visible regardless of .gitignore rules.
Something like:

{
  "fileCompletion": {
    "respectGitignore": false
  }
}
Or a global option to disable gitignore for all file operations.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions