Add clipboard URL handler and clipboard history menu#3352
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for comparing clipboard contents via a clip:// URL scheme and exposes clipboard history in UI menus, backed by a new helper for building clipboard history submenus and updated packaging/plugin definitions for the cliphcat dependency.
Changes:
- Add
clip:///clipboard://URL handling via a new automatic plugin that invokescliphcat. - Add clipboard history to the Open dialog “Browse” split-button dropdowns and refactor clipboard history menu construction into
ClipboardHistoryMenu. - Update docs and packaging/scripts to ship
cliphcatand document the new plugin.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| Src/resource.h | Adds a new popup menu resource ID for the Browse dropdown. |
| Src/OpenView.h | Tracks last dropdown button and adds handler for clipboard history selection. |
| Src/OpenView.cpp | Wires Browse split-button dropdown + clipboard history selection to emit clip:// URLs. |
| Src/Merge.vcxproj.filters | Adds new menu helper files to project filters. |
| Src/Merge.vcxproj | Adds new menu helper files to the build. |
| Src/Merge.rc | Adds IDR_POPUP_BROWSE menu resource and converts Browse buttons to split buttons. |
| Src/MainFrm.cpp | Infers compare window type from URL fragment (e.g., #type=image). |
| Src/EditorFilepathBar.cpp | Reuses the new clipboard history menu helper. |
| Src/ClipboardHistoryMenu.h | Declares shared helper for clipboard history submenu population. |
| Src/ClipboardHistoryMenu.cpp | Implements shared helper for clipboard history submenu population. |
| Plugins/Strings.rc | Adds localized description string for the new URL handler plugin. |
| Plugins/Plugins.xml | Adds automatic URL handler plugin for clip:// / clipboard:// using cliphcat. |
| Installer/InnoSetup/WinMergeX86.iss | Packages cliphcat into the installer. |
| Installer/InnoSetup/WinMergeX64NonAdmin.iss | Packages cliphcat into the installer. |
| Installer/InnoSetup/WinMergeX64.iss | Packages cliphcat into the installer. |
| Installer/InnoSetup/WinMergeX64.is6.iss | Packages cliphcat into the installer. |
| Installer/InnoSetup/WinMergeARM64.is6.iss | Packages cliphcat into the installer. |
| Externals/versions.txt | Records the cliphcat external dependency version. |
| DownloadDeps.cmd | Downloads and stages cliphcat into the build dependency tree. |
| Docs/Manual/English/Plugins.xml | Documents the new clipboard URL handler plugin. |
| BuildArc.cmd | Includes cliphcat in the zip distribution packaging step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sdottaka
added a commit
that referenced
this pull request
May 1, 2026
Marcellomco
added a commit
to Marcellomco/winmerge
that referenced
this pull request
May 1, 2026
Added translation for "Add clipboard URL handler and clipboard history menu (WinMerge#3352)"
Merged
sdottaka
pushed a commit
that referenced
this pull request
May 2, 2026
Added translation for "Add clipboard URL handler and clipboard history menu (#3352)"
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add clipboard URL handler and history menu