Skip to content

Add clipboard URL handler and clipboard history menu#3352

Merged
sdottaka merged 7 commits into
masterfrom
feature/clipboard-url-handler
May 1, 2026
Merged

Add clipboard URL handler and clipboard history menu#3352
sdottaka merged 7 commits into
masterfrom
feature/clipboard-url-handler

Conversation

@sdottaka
Copy link
Copy Markdown
Member

@sdottaka sdottaka commented Apr 30, 2026

Add clipboard URL handler and history menu

  • Support clipboard:// URLs via cliphcat
  • Add clipboard history dropdown in Browse buttons
  • Refactor menu logic
image image

@sdottaka sdottaka marked this pull request as ready for review April 30, 2026 05:41
@sdottaka sdottaka added this to the v2.16.57 milestone Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 invokes cliphcat.
  • 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 cliphcat and 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.

Comment thread Installer/InnoSetup/WinMergeX86.iss
Comment thread Installer/InnoSetup/WinMergeX64NonAdmin.iss
Comment thread DownloadDeps.cmd Outdated
Comment thread Installer/InnoSetup/WinMergeX64.iss
Comment thread Installer/InnoSetup/WinMergeX64.is6.iss
Comment thread Src/OpenView.cpp Outdated
Comment thread Src/ClipboardHistoryMenu.cpp Outdated
Comment thread DownloadDeps.cmd Outdated
Comment thread BuildArc.cmd Outdated
Comment thread BuildArc.cmd
@sdottaka sdottaka merged commit 767ffa7 into master May 1, 2026
2 of 3 checks passed
@sdottaka sdottaka deleted the feature/clipboard-url-handler branch May 1, 2026 04:35
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)"
@Marcellomco Marcellomco mentioned this pull request May 1, 2026
sdottaka pushed a commit that referenced this pull request May 2, 2026
Added translation for "Add clipboard URL handler and clipboard history menu (#3352)"
@Havoc7891 Havoc7891 mentioned this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants