#GitHub - FlyingFathead/catgit: Python to...

1 messages · Page 1 of 1 (latest)

peak dragon
#

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?

rotund radish
#

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

peak dragon
#

ahh

#

my bad then

#

yeah i fixed gitignore

#

(is a new project)

rotund radish
#

it has a step for analyzing potential binaries and skipping them with a marker but apparently it let the file past

peak dragon
#

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

rotund radish
peak dragon
#

i got my chatgpt action calling it

rotund radish
#

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 ...)

peak dragon
#

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

#

¯_(ツ)_/¯

rotund radish
#

you can of course just i.e. pipe it and grep it if that suits your workflow better 🙂

peak dragon
#

ill give it more a chance by using it today

rotund radish
#

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

peak dragon
#

yeah i find giving the machine folder structure and relevant code files makes it so much better at generating new code

rotund radish
#

(I only built the Python version of that today, so it's still a WIP...)

rotund radish
#

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

rotund radish
#

v0.10.6 is out, with improvements here and there. I'll check the heuristics on binary detection later on.