Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: avih/uclip

Tags

v0.6

Toggle v0.6's commit message
copy (win32): clear the clipboard using win32 API

It seems that some (winRT?) applications don't identify the copy
unless the clipboard is cleared first. See:
-  microsoft/terminal#14323
-  microsoft/terminal#14323 (comment)

Commit 46f2f42 already added a dotnet clear (before the win32 copy),
but apparently that's not always enough for the Windows terminal.

Clearing using the win32 EmptyClipboard() does seem to work for
the Windows terminal.

The dotnet clear is now only invoked if the win32 copy failed. It's
unclear whether it's required, because the Windows Terminal does
paste successfully when copying using dotnet even without clear, but
keep it just in case.

v0.5

Toggle v0.5's commit message
bump version to 0.5

v0.4

Toggle v0.4's commit message
bump version to 0.4, update the README

v0.3

Toggle v0.3's commit message
bump version to 0.3, update the README

v0.2

Toggle v0.2's commit message
copy empty text: clear the clipboard instead of error (v0.2)

Apparently Clipboard.SetText("") throws an exception, which affected
-c/-i/-I.

Now it instead clears the clipboard, which is semantically consistent
with setting the clipboard text to an empty string.

v0.1

Toggle v0.1's commit message
Add source and readme - version 0.1