Currently, if you go :attach *
every file, including hidden files are shown.
I poked around a bit: line 314 in utils:
matches, err := filepath.Glob(fmt.Sprintf("%s*", path))
we use this to return partial matches when the user is typing out a path.
It uses the syntax of match: https://pkg.go.dev/path/filepath#Match which says nothing about skipping hidden files. It also doesn't say anything about exclusions.
What we could do is check if the users has explicitly included a . at the beginning and if not, strip anything starting with a . from the results, but I don't know if this is desirable or not.
Moritz Poldrack referenced this ticket in commit 466888d.