CodeMap is a designed to help developers **visualize, explore, and document their code rAnd Copy whole Folder Code and provide Context to Ai with ease. Whether you're working on a small project or a large codebase, CodeMap provides a clean and intuitive interface to explore your folder structure, select files, and generate context-rich documentation. Perfect for code reviews, or sharing project context with Ai!
- File Tree Visualization: Explore your repository's folder structure in a beautifully formatted tree view (
├──,└──,│). - Selective File Inclusion: Choose specific files or folders to include in your context.
- Context Generation: Generate a context-rich document with file content, file paths, and an optional file tree.
.gitignoreSupport: Automatically excludes files and folders based on your.gitignorerules.- Word Count: Track the number of words in your generated context.
- Copy to Clipboard: Easily copy the generated context to your clipboard with one click.
- Cross-Platform: Works seamlessly on Windows, macOS, and Linux.
-
Clone the Repository:
git clone https://github.com/xx77yy/codemap.git cd codemap -
Install Dependencies: Make sure you have Python 3.7+ installed. Then, install the required packages:
pip install -r requirements.txt
-
Run the Application:
python main.py
-
Choose a Folder:
- Click the "Choose or Change Folder" button to select your project folder.
-
Explore the File Tree:
- The left panel displays your folder structure in a clean and formatted tree view.
- Use the "Select All" checkbox to quickly select or deselect all files.
-
Generate Context:
- Toggle the "Include File Tree" checkbox to include the folder structure in the context.
- Toggle the "Include File Content" checkbox to include the content of selected files.
- The generated context will appear in the right panel.
-
Copy or Save:
- Use the "Copy to Clipboard" button to copy the context.
- The word count is displayed at the bottom for quick reference.
CodeMap/
│
├── main.py
├── settings.json
├── ui/
│ ├── main_window.py
│ └── file_tree.py
├── utils/
│ ├── file_utils.py
│ ├── settings_utils.py
│ └── gitignore_utils.py
└── context_builder.py
folder structure:
CodeMap/
├── main.py
├── settings.json
├── ui/
│ ├── main_window.py
│ └── file_tree.py
├── utils/
│ ├── file_utils.py
│ ├── settings_utils.py
│ └── gitignore_utils.py
└── context_builder.py
--- main.py ---
# Your main.py content here...
--- ui/main_window.py ---
# Your main_window.py content here...
We welcome contributions from the community! Here’s how you can help:
-
Fork the Repository:
- Click the "Fork" button at the top right of this page.
-
Create a Branch:
git checkout -b feature/your-feature-name
-
Make Your Changes:
- Add new features, fix bugs, or improve documentation.
-
Submit a Pull Request:
- Open a pull request and describe your changes. We’ll review and merge it!
This project is licensed under the MIT License. See the LICENSE file for details.
- Built with ❤️ using Python and PyQt5.
- Inspired by the need for better code documentation tools.
Have questions or suggestions? Feel free to reach out:
- GitHub Issues: Open an Issue
If you find this project useful, please give it a star on GitHub! ⭐
Happy coding! 🚀
