Skip to content

[Feature Request] Support directories & glob patterns in "Copy Files" #1211

@Gumball12

Description

@Gumball12

Summary

Support letting Copy Files accept directories and glob patterns so we don't have to list files one by one.

Why

Teams often need to stage git-ignored local artifacts in each task worktree, for example:

  • .env.local and other .env.* files
  • secrets/*.json
  • config/local/**
  • certs/*.pem

Proposal

.env.local, secrets/*.json, config/local/**, certs/*.pem
  • Accept a comma-separated list where each entry can be a file, directory, or glob
  • Directories copy recursively and preserve structure
  • Globs resolve from the repo root
  • Paths are validated to stay inside the repo
  • Non-matching patterns warn but do not fail

Notes

I didn't find an open issue or PR for this. Closest earlier discussion I saw was #444 about adding a copy option in settings, and this proposal extends that idea.

If this direction sounds good, I'm happy to open a small PR for review. I have a working prototype with tests. (Posting here rather than Discussions since similar requests are usually filed as issues.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions