Skip to content

Add --show-gitignored flag to allow showing gitignored files in file picker#2493

Open
gtardif wants to merge 2 commits intodocker:mainfrom
gtardif:show_gitignored
Open

Add --show-gitignored flag to allow showing gitignored files in file picker#2493
gtardif wants to merge 2 commits intodocker:mainfrom
gtardif:show_gitignored

Conversation

@gtardif
Copy link
Copy Markdown
Contributor

@gtardif gtardif commented Apr 22, 2026

Implements issue #2490 by adding a --show-gitignored flag to the 'docker agent run' command.
When enabled, the file picker (@-syntax) will show gitignored files that are normally hidden.

Changes:

  • Added --show-gitignored flag to run command in cmd/root/run.go
  • Added WithShowGitignored() option to TUI in pkg/tui/tui.go
  • Modified file picker dialog to accept showGitignored parameter
  • Updated file picker to conditionally skip VCS ignore checking
  • Same with file completion popup (inline list when pressing @)
  • Added comprehensive test for the new functionality

Closes #2490

Assisted-By: docker-agent

gtardif added 2 commits April 22, 2026 11:31
…picker

Implements issue docker#2490 by adding a --show-gitignored flag to the 'docker agent run' command.
When enabled, the file picker (@-syntax) will show gitignored files that are normally hidden.

Changes:
- Added --show-gitignored flag to run command in cmd/root/run.go
- Added WithShowGitignored() option to TUI in pkg/tui/tui.go
- Modified file picker dialog to accept showGitignored parameter
- Updated file picker to conditionally skip VCS ignore checking
- Added comprehensive test for the new functionality

Closes docker#2490

Assisted-By: docker-agent
The flag now works for both:
- File completion popup (inline list when pressing @)
- File picker dialog (Browse files... option)

Assisted-By: docker-agent
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@gtardif gtardif requested a review from a team as a code owner April 22, 2026 10:29
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.

feat: --show-gitignored flag for file picker (@-syntax) to show gitignored files

1 participant