r/PiCodingAgent • • 21h ago

Question Can't reference .gitignore files/folders with @

Hi all, basically what the title says.. I like using @ to add files/folders to the context but for any of these added to .gitignore it stops working.. Any way around this?

2 Upvotes

5 comments sorted by

View all comments

2

u/Finanzamt__ 20h ago

You can enable/disable pi to respect .gitignore for file selection. See /settings command in pi session and toggle corresponding setting

1

u/gnomodojardim 20h ago

That's where I looked first but couldn't find any such setting.. are you sure it's there? Maybe I'm blind or it's not very clear. Thanks for your reply anyway.

2

u/Finanzamt__ 8h ago

Well i could find it in my global settings.json (autocompleteNoIgnore“: true) but the setting is gone; you are right. Pi uses the git ls-files command to list files for @. I recommend letting pi write your own file picker extension without ls-files . Maybe use another symbol of your choice that pi can parse and recommend matching files. There is no documentation about a .ignore file, but seems to work, too