3 ms·
Unfortunately project files don't seem to have folders or a way organize the hierarchy so I had Claude write a little script to dump all source files into a sin
by throwup238 2y ago
Unfortunately project files don't seem to have folders or a way organize the hierarchy so I had Claude write a little script to dump all source files into a single markdown file with paths: https://pastebin.com/P6Cc1cmL https://pastebin.com/P6Cc1cmL
It uses fd which respects .gitignore by default. A 10k LoC C++/Rust/QML/JS project came in at about 50% of the context.
With this release they also added chat history search!
- simonw 2y agoYou can drop multiple files onto a project at once - I had to rename my .rst files to .rst.txt in order for that to work (GPT-4o zsh snippet): for file in *.rst; do mv "$file" "${file%.rst}.rst.txt"; done My https://github.com/simonw/files-to-prompt https://github.com/simonw/files-to-prompt tool might also be useful here, for turning a bunch of different files into a single file to upload.
- SushiHippie 2y agoEven easier, zsh provides zmv for that: autoload -U zmv zmv '(*.rst)' '$1.txt'