Skip to content

x-cod3r/Text-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“„ File to Text Converter

Python Platform License GUI

A simple, elegant GUI tool to convert multiple code files into a single text document

Features โ€ข Installation โ€ข Usage โ€ข Supported Formats โ€ข Screenshots


โœจ Features

  • ๐ŸŽฏ Simple & Intuitive: Clean, user-friendly interface
  • ๐Ÿ“ Flexible Selection: Browse individual files or entire folders
  • ๐Ÿ”ง Customizable Output: Control headers, separators, and structure
  • ๐ŸŒ Smart Encoding: Automatically handles different text encodings
  • ๐Ÿ“Š Progress Tracking: Real-time processing status
  • ๐Ÿ›ก๏ธ Error Handling: Gracefully manages unreadable files
  • ๐Ÿš€ Cross-Platform: Works on Windows, macOS, and Linux

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.6 or higher
  • tkinter (usually included with Python)

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/file-to-text-converter.git
    cd file-to-text-converter
  2. Run directly (no additional dependencies needed!)

    python file_to_text_converter.py

Alternative: Download Release

Download the latest release from the Releases page and run the standalone executable.

๐ŸŽฎ Usage

Basic Workflow

  1. Launch the application
  2. Select Files:
    • Click "Browse Files" for individual selection
    • Click "Browse Folder" to scan entire directories
  3. Configure Options:
    • โœ… Include filename headers
    • โœ… Add separators between files
    • โœ… Preserve folder structure
  4. Convert: Click "Convert to Text File" and choose output location

Command Line Alternative

For automation, you can also use the tool programmatically:

from file_to_text_converter import FileToTextConverter
import tkinter as tk

# Create and run the GUI
root = tk.Tk()
app = FileToTextConverter(root)
root.mainloop()

๐Ÿ“‹ Supported File Formats

Programming Languages

  • C/C++ (.cpp, .c, .cc, .cxx)
  • Headers (.h, .hpp, .hh, .hxx)
  • Python (.py, .pyw)
  • JavaScript (.js, .jsx)
  • TypeScript (.ts, .tsx)
  • Java (.java)
  • C# (.cs)
  • PHP (.php)

Additional Formats

  • Ruby (.rb)
  • Go (.go)
  • Rust (.rs)
  • Swift (.swift)
  • Kotlin (.kt)
  • Scala (.scala)
  • Shell Scripts (.sh, .bash)
  • SQL (.sql)
  • And many more...

๐Ÿ“ธ Screenshots

Main Interface

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           File to Text Converter            โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Select Files: [Browse Files] [Browse Folder] [Clear] โ”‚
โ”‚                                             โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Selected Files:                         โ”‚ โ”‚
โ”‚ โ”‚ โ€ข project/main.cpp                      โ”‚ โ”‚
โ”‚ โ”‚ โ€ข project/utils.h                       โ”‚ โ”‚
โ”‚ โ”‚ โ€ข project/data.py                       โ”‚ โ”‚
โ”‚ โ”‚ โ€ข project/config.json                   โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚                                             โ”‚
โ”‚ Options:                                    โ”‚
โ”‚ โ˜‘ Include filename headers                  โ”‚
โ”‚ โ˜‘ Add separators between files             โ”‚
โ”‚ โ˜ Preserve folder structure in output      โ”‚
โ”‚                                             โ”‚
โ”‚           [Convert to Text File]            โ”‚
โ”‚                                             โ”‚
โ”‚ Status: 4 files selected                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Configuration Options

Option Description Default
Include filename headers Adds === filename.ext === before each file โœ… Enabled
Add separators Inserts ======================================== between files โœ… Enabled
Preserve folder structure Shows full path instead of just filename โŒ Disabled

๐Ÿ“ Output Example

=== main.cpp ===
#include <iostream>
#include "utils.h"

int main() {
    std::cout << "Hello World!" << std::endl;
    return 0;
}

==================================================

=== utils.h ===
#ifndef UTILS_H
#define UTILS_H

void printMessage();

#endif

==================================================

=== data.py ===
import json

def load_config():
    with open('config.json', 'r') as f:
        return json.load(f)

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Ideas for Contributions

  • ๐ŸŽจ UI/UX improvements
  • ๐Ÿ“ Additional file format support
  • ๐Ÿ”ง Command-line interface
  • ๐ŸŒ Internationalization
  • ๐Ÿ“ฆ Package management integration

๐Ÿ› Bug Reports & Feature Requests

Found a bug or have a feature idea? Please open an issue on the Issues page.

Bug Report Template:

  • Python version
  • Operating system
  • Steps to reproduce
  • Expected vs actual behavior

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Built with Python's tkinter for maximum compatibility
  • Inspired by the need for simple code consolidation tools
  • Thanks to all contributors and users!

๐Ÿ“Š Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests


Made with โค๏ธ for developers who need to consolidate their code

About

A simple tool to convert different languages programing files like .py .cpp .h nto .text files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages