When you're using GPTChat to work on your code, it often loses state or has no ability to see the modifications you made in editor.
This is a Python script that reads all .py files in the current directory (excluding the script file itself), concatenates their contents, and adds the name of each file as a comment at the beginning of each file's contents. The resulting output is then copied to the clipboard for pasting into GPTChat.
These instructions will help you get a copy of the project up and running on your local machine.
This project requires Python 3 and the pyperclip package to be installed. If you don't already have Python 3 installed, you can download it from the official website. To install pyperclip, you can run the following command:
pip install pyperclip
To get a local copy of this project, you can clone the repository using Git:
git clone https://github.com/clarkdever/gpt-paste.git
Alternatively, you can download the ZIP archive of the project and extract it to your desired directory.
To use the script, simply navigate to the directory containing your .py files and run the script:
python gpt-paste.py
The script will concatenate the contents of all .py files in the directory (excluding the script file itself), add a comment indicating the name of each file, and copy the resulting output to the clipboard for pasting into GPTCHat.
If you have any suggestions or find any issues with the project, feel free to open an issue or submit a pull request. All contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.
Happy Hacking!