{"id":29659431,"url":"https://github.com/byronap/clipboardtofile","last_synced_at":"2025-07-22T09:11:59.996Z","repository":{"id":298905217,"uuid":"1001504740","full_name":"ByronAP/ClipboardToFile","owner":"ByronAP","description":"A Windows utility that creates files in the active File Explorer window from text copied to the clipboard.","archived":false,"fork":false,"pushed_at":"2025-06-17T12:27:35.000Z","size":243,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2025-07-18T12:56:50.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ByronAP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-13T13:49:22.000Z","updated_at":"2025-06-16T16:30:56.000Z","dependencies_parsed_at":"2025-06-13T14:50:59.571Z","dependency_job_id":"b1ea08ac-25ea-41e5-a3e6-7d2a5e497320","html_url":"https://github.com/ByronAP/ClipboardToFile","commit_stats":null,"previous_names":["byronap/clipboardtofile"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ByronAP/ClipboardToFile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByronAP%2FClipboardToFile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByronAP%2FClipboardToFile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByronAP%2FClipboardToFile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByronAP%2FClipboardToFile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByronAP","download_url":"https://codeload.github.com/ByronAP/ClipboardToFile/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByronAP%2FClipboardToFile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266463652,"owners_count":23932905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-22T09:11:58.877Z","updated_at":"2025-07-22T09:11:59.980Z","avatar_url":"https://github.com/ByronAP.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clipboard To File for Windows\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/icon.svg\" alt=\"Application Icon\" width=\"128\"\u003e\n\u003c/p\u003e\n\nA lightweight, high-performance, and dependency-free Windows utility that intelligently creates files and their content in your active File Explorer window, directly from your clipboard.\n\nWritten in pure C++ with the Win32 API for maximum efficiency and minimal resource usage.\n\n\u003cp align=\"center\"\u003e\n  \u003c!-- License Badge - Static --\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\n  \u003c/a\u003e\n  \u003c!-- CI Pipeline Status Badge - Dynamic --\u003e\n  \u003ca href=\"https://github.com/ByronAP/ClipboardToFile/actions/workflows/ci-build.yml\"\u003e\n    \u003cimg src=\"https://github.com/ByronAP/ClipboardToFile/actions/workflows/ci-build.yml/badge.svg?branch=dev\" alt=\"CI Build Status\"\u003e\n  \u003c/a\u003e\n  \u003c!-- Latest Release Version Badge - Dynamic --\u003e\n  \u003ca href=\"https://github.com/ByronAP/ClipboardToFile/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/ByronAP/ClipboardToFile\" alt=\"Latest Release\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## The Problem It Solves\n\nAs a developer, you often need to create new files (`new_component.js`, `style.css`, `debug.log`, etc.) in your current working directory. You might also have code snippets or entire file contents on your clipboard that you want to save quickly.\n\nThis utility streamlines both workflows into a single action: **Copy \u0026 Done**.\n\n## How It Works\n\nThe application runs silently in your system tray and monitors the clipboard for text that looks like a file you want to create. It offers two powerful, independently-togglable features:\n\n### 1. Create Empty File\nIf you copy a simple filename like `new_style.css`, the app will instantly create that empty file in your active File Explorer window.\n\n### 2. Create File with Content\nIf you copy a block of text where the **first line is a filename** (like `my_script.js`) and the rest is the content, the app will create the file and populate it with that content, all in one go. This is perfect for pasting code snippets, logs, or any text artifact.\n\nThe app uses a configurable, intelligent system (including regex) to detect the filename on the first line. In all cases, it will only act if there is **exactly one** File Explorer window open, as a safety measure to ensure files are never created in the wrong place.\n\n## Features\n\n-   **Dual Functionality:** Independently enable/disable \"Create Empty File\" and \"Create File with Content\" from the tray menu.\n-   **Powerful Content Creation:** Uses a list of configurable regular expressions to intelligently detect filenames, even in complex formats like `// --- START OF FILE: my_app.cpp ---`.\n-   **Centralized JSON Configuration:** All settings are managed in a single, easy-to-edit `config.json` file.\n-   **Extremely Lightweight:** Written in C++ with the native Win32 API. No .NET, no Electron, no other runtimes. The executable is tiny and uses virtually no memory.\n-   **Fully Automated \u0026 User-Friendly:**\n    -   **\"Start with Windows\"** toggle in the tray menu for convenience.\n    -   **\"Edit Config...\"** menu option opens `config.json` in your default editor.\n    -   Automatically checks for new versions once every 24 hours.\n    -   Automatically creates `config.json` on first run with sensible defaults.\n    -   Live-reloads settings when `config.json` is modified.\n-   **Safe and Informative:**\n    -   Only works when a single File Explorer window is active to prevent ambiguity.\n    -   Provides distinct toast notifications for empty files vs. files with content.\n\n## Installation \u0026 Usage\n\n1.  Go to the [**Releases**](https://github.com/ByronAP/ClipboardToFile/releases) page.\n2.  Download the latest `ClipboardToFile-Setup.exe` file and run it.\n3.  Alternatively, download the `ClipboardToFile-Portable.zip` for a version that requires no installation.\n\nAfter running the application for the first time, a `config.json` file will be created in your user's AppData directory (`%APPDATA%\\ClipboardToFile\\`). You can customize all application behavior by editing this file via the **\"Edit Config...\"** option in the tray menu.\n\nFor convenience, right-click the tray icon and select **\"Start with Windows\"** to have the application launch automatically when you log in.\n\n## Building from Source\n\nThis project uses Git Submodules for its dependencies.\n\n### Prerequisites\n-   **Visual Studio 2022** (or 2019) with the **\"Desktop development with C++\"** workload installed.\n-   Windows 10 or 11 SDK.\n-   Git installed.\n\n### Steps\n1.  Clone the repository and its submodules:\n    ```bash\n    git clone --recurse-submodules https://github.com/ByronAP/ClipboardToFile.git\n    ```\n2.  Open the `ClipboardToFile.sln` file in Visual Studio.\n3.  Set the build configuration to **Release** and the platform to **x64**.\n4.  From the menu, select **Build \u003e Build Solution**.\n\nThe final executable will be located in the `x64/Release` folder.\n\n## Contributing\n\nThis project was built for a specific purpose, but suggestions and improvements are welcome. Feel free to open an issue to discuss a potential feature or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyronap%2Fclipboardtofile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyronap%2Fclipboardtofile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyronap%2Fclipboardtofile/lists"}