nppGitClone (14-16ko)
-
Here is the
README.mdfile describing it :nppGitClone
A lightweight Notepad++ plugin that allows you to clone GitHub repositories directly from the editor interface and seamlessly add them to your workspace without cluttering your tabs.
Features
- Intuitive UI: Simple input dialog to paste your public GitHub repository URL.
- Background Execution: Automated, non-blocking
git cloneprocess. - Workspace Integration: Directly adds the cloned repository to the “Folder as Workspace” side panel via a simulated drag-and-drop mechanism.
- Smart Path Handling: Configurable destination directory via a native Windows folder browser.
- Multi-Architecture Support: Ready-to-use scripts for compiling in both Windows x64 and x86 environments using MSVC.
Installation
Manual Installation
- Download the latest release: nppGitClone.zip
- Unzip the archive to a temporary folder.
- Navigate to your Notepad++ plugins directory (usually
C:\Program Files\Notepad++\plugins\). - Create a new folder named exactly
nppGitClone. - Copy all files from the temporary folder into this new
plugins\nppGitClone\directory. - Restart Notepad++ to activate the plugin.
Build Instructions
Prerequisites
- Visual Studio 2026 (with C++ Desktop Development build tools)
- Git for Windows (with
git.exeadded to your system PATH) - Windows SDK
Building with Batch Files
Open your terminal or double-click the corresponding script depending on your target Notepad++ architecture:
- For a 64-bit (x64) build, run:
build.bat
* For a **32-bit (x86)** build, run: ```bash buildx86.batThe compilation automation scripts will:
- Safely initialize the temporary MSVC developer environment.
- Compile all internal source files using the appropriate multi-threaded library flag (
/MD). - Link against essential Windows API libraries (
user32,shell32,shlwapi,gdi32). - Generate a standalone
nppGitClone.dllcompiled for your targeted architecture.
Usage
- Launch Notepad++.
- Navigate to the top menu:
Plugins>nppGitClone>Clone Repository. - Enter the public GitHub HTTPS URL (e.g.,
https://github.com/username/repo.git). - Select your preferred local destination folder using the browser window.
- Relax! The plugin handles the cloning and appends the root folder to your left workspace layout automatically.
Project Structure
nppGitClone/ ├── src/ │ ├── PluginDefinition.h # Plugin interface definitions │ ├── PluginDefinition.cpp # Plugin initialization & registration │ ├── nppGitClone.cpp # Main operational logic │ ├── Dialogs.h # Dialog UI windows declarations │ ├── Dialogs.cpp # Custom input and directory dialogue implementations │ └── include/ │ ├── Notepad_plus_msgs.h # Standard Notepad++ messaging API │ ├── Scintilla.h # Scintilla components integration keys │ └── resource.h # Win32 resource identifiers ├── build.bat # Native 64-bit automation script ├── buildx86.bat # Cross-compilation 32-bit automation script ├── README.md # Product manual (This file) └── .gitignore # Workspace untracked file signaturesTroubleshooting
Build fails: “Could not find Visual Studio”
- Ensure that Visual Studio 2026 Build Tools are correctly deployed.
- Open
build.batorbuildx86.batand verify that theVS_PATHparameter reflects your actual IDE installation directory. - Try running your terminal instance or the batch files as Administrator.
Plugin doesn’t appear in Notepad++
- Confirm the target installation folder layout matches:
...\Notepad++\plugins\nppGitClone\nppGitClone.dll. - Check your exact Notepad++ architecture architecture via Help > About Notepad++. Loading an x86 DLL inside an x64 app layer will cause an silent initialization fault. Ensure you executed the correct compilation batch script.
- Always restart the host editor process completely after copying new assets.
Git clone fails
- Ensure Git is globally accessible. Try opening a standalone Command Prompt and type
git --versionto test your environment path. - Check active network configurations and ensure the destination disk has write permissions.
License
This project is licensed under the MIT License.
Author
gcyrillus
-
A lightweight Notepad++ plugin that allows you to clone GitHub repositories
For a more “feature-rich”, yet woefully underpowered (could use some updates and some coding smarts like threads to perform tasks in the background), see:
https://github.com/vinsworldcom/nppGitSCM
Happy to take pull requests or fork it and develop and re-release. I’m at the top end of my C++ coding expertise so I’m no longer actively developing it.
Cheers.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login