terminal: WSL: Pasting text from a clipboard manager doesn't insert text at the console's cursor

Microsoft Windows [Version 10.0.17763.134]


I’m using Ubuntu WSL and the default ubuntu.exe terminal. It’s been configured so that CTRL+Shift+C/V allow for copy / pasting, which by itself is working.

However, I use Ditto which is an open source clipboard manager which allows you to write to and access multiple clipboard items. It can be found at https://ditto-cp.sourceforge.io/.

Expected outcome

  • Store multiple items in the Ditto clipboard by using the clipboard naturally.
  • Trigger the Ditto menu to pick an item using Ditto’s registered key binding of CTRL + ALT + V.
  • Select the desired clipboard item from Ditto’s menu.
  • See the clipboard item output at my cursor inside of the Ubuntu terminal so I can press enter to execute the command (or do whatever I want with the text that was inserted).

Actual outcome

  • Store multiple items in the Ditto clipboard by using the clipboard naturally.
  • Trigger the Ditto menu to pick an item using Ditto’s registered key binding of CTRL + ALT + V.
  • Select the desired clipboard item from Ditto’s menu.
  • See nothing in the Ubuntu terminal because the item gets absorbed by ubuntu.exe, and occasionally see ^V instead of the desired text depending on how I select the item (mouse click or pressing Enter).

I’ve tried other terminals like ConEmu and Hyper, and in those cases Ditto works. Ditto also works just fine with every other application (browser, IRC client, code editor, etc.). It’s only failing with ubuntu.exe and related terminals.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 6
  • Comments: 20 (5 by maintainers)

Most upvoted comments

I see two options,

  1. Map ctrl-v to be paste in terminal

“keybindings”: [ { “command”: “paste”, “keys”: [“ctrl+v”] }, { “command”: “copy”, “keys”: [“ctrl+c”] } ]

  1. Change Ditto to send CTRL + Shift + V to perform the paste, https://sourceforge.net/p/ditto-cp/wiki/Custom Key Strokes/

[HKEY_CURRENT_USER\Software\Ditto\PasteStrings] “WindowsTerminal.exe”=“+^{VKEY86}”

I’m more used to the old shift+insert to paste. this doesn’t seems to work either.