claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Hidden Files Not Displayed with '@.hidden' Command

Open MiddSea opened this issue 7 months ago • 6 comments

Bug Description Hidden Files/Directories not shown using '@' command

using @.hidden doesn't work, hidden files/dirs not shown if preceeded by '.' I expect it to follow .gitignore or possibly VS code's ignore settings and them to be overidden by explicitly writing a '.'

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.30
  • Feedback ID: fbe40168-20d6-4db8-9433-d15049063971

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at NZ (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:699:3921)\n    at file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at QX (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at kS (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at L9 (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-19T21:07:52.233Z"}]

MiddSea avatar Jun 19 '25 21:06 MiddSea

agree with you @MiddSea - this seems like a bug - there are a lot of files that we want claude to look at in hidden directories (even outside of .claude but you have to just type it out by hand

adawalli avatar Jun 19 '25 22:06 adawalli

Adding

!.* !.config/ !.config/**/*

to my .gitignore allowed claude to discover hidden files with @

ghost avatar Jun 23 '25 18:06 ghost

^ well that worked for a day, i don't know why but no longer works

ghost avatar Jun 24 '25 20:06 ghost

I am also experiencing this issue. Can't reference my .github/ workflows.

johnnyshankman avatar Jun 24 '25 20:06 johnnyshankman

Adding !.* at the top of .gitignore fixed it for me.

zbeyens avatar Jun 24 '25 22:06 zbeyens

Linking related issues for visibility - please upvote if you're experiencing this too:

  • #2336
  • #1818
  • #611

rcdailey avatar Jun 29 '25 15:06 rcdailey

Feels like this might be relevant too:

  • https://github.com/anthropics/claude-code/issues/2305

npupko avatar Jul 01 '25 09:07 npupko

You can still reference hidden files e.g. @.github/workflows/ci.yml - but only by typing them out 😅

plattenschieber avatar Jul 02 '25 11:07 plattenschieber

Adding !.* at the top of .gitignore fixed it for me.

This worked for me too!

whrit avatar Jul 18 '25 21:07 whrit

Adding !.* at the top of .gitignore fixed it for me.

Can confirm this too.

dragonworx avatar Jul 24 '25 09:07 dragonworx

Hey all, hidden files should be available now for searching in the latest release (v1.0.64) :)

Image

ollie-anthropic avatar Jul 31 '25 07:07 ollie-anthropic

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 07 '25 14:08 github-actions[bot]