#GitHub - FlyingFathead/catgit: Python to...
1 messages · Page 1 of 1 (latest)
how different to find . -name \*.py -exec cat "{}" \;?
i ran catgit on my project and it started printing binary from my .onnx model files. with find i can easily filter?
I see, then it wasn't detecting the binary properly. The idea is that it should not print out binaries or anything that you have in .gitignore by default
that would be all python files, basically catgit is for project structures altogether, not just for python files, but anything that's in plaintext
it has a step for analyzing potential binaries and skipping them with a marker but apparently it let the file past
for chatgpt assisted programming i am looking for the simplest way to retrieve all the relevant code. and catgit will do the job for small projects
oh you gotta be in the project folder for the binary filter to work
I updated the path handling to absolute and increased potential error catching, updated to 0.10.3, please grab the latest 🙂
i got my chatgpt action calling it
I recommend doing catgit --setup if you want to i.e. steer the output directly into a preferred editor etc.
(switch terminal to editor and add in i.e. gedit, notepad, whatever ...)
is close but not exactly what i need. i was hoping for when a unit test fails, i can instruct gpt to just review all content of relevant imports/references etc
but its not far from what im already doing, which is just random find cmds
¯_(ツ)_/¯
you can of course just i.e. pipe it and grep it if that suits your workflow better 🙂
ill give it more a chance by using it today
I basically use that myself for project overviews. It should be better now with the quick patches I made to v0.10.3 if you upgrade
yeah i find giving the machine folder structure and relevant code files makes it so much better at generating new code
... which is exactly why I built that software 🙂 can be expanded upon
(I only built the Python version of that today, so it's still a WIP...)
Updated to v0.10.4 w/ a new flag for running it straight to editor; --editor (if the editor isn't found, it'll prompt for it, use whatever is in your system PATH; can be vim, nano, gedit etc on Linux, notepad etc on Windows)
i.e. like so on Windows:
$ catgit catgit/ --editor
The editor 'gedit' is not found. Please enter a valid editor command or press Enter to cancel: notepad
it'll be automatically updated to your existing config.ini
v0.10.6 is out, with improvements here and there. I'll check the heuristics on binary detection later on.