Ditto icon indicating copy to clipboard operation
Ditto copied to clipboard

Send a clip to OS (Windows) clipboard

Open Chealer opened this issue 2 years ago • 18 comments

Some applications can read the OS clipboard for a purpose other than pasting. For example, the Eclipse IDE's Open from clipboard feature (Ctrl + Shift + V) opens a symbol matching the clipboard's content.

Although Eclipse could arguably offer a dialog to search with a regular text input, Ditto could facilitate using such features by offering a feature to move a clip to the Microsoft Windows clipboard. That way, even if a clip's content is not in the clipboard, it would be efficient to use it. With Eclipse, one could:

  • Bring up Ditto
  • Press Apps/Menu
  • Send To → Clipboard
  • Press Ctrl + Shift + V

Ditto unfortunately does not allow this as of version 3.24.246.0.

Chealer avatar Dec 07 '23 16:12 Chealer

Ditto send clip to OS clipboard when you copy clip in quick list.

In general OS clipboard clip and Ditto clip(latest) is equal (unless you don't disconnect clipboard with Ditto or something else) In this case you might not need to send Ditto's clip.

So, I think your common issue case seems about older clips in Ditto. If it is, I suggest to use copy clip in quick list via shortcut(simply Ctrl + C). This is because "right click and select send to" action is more heavy (in user experience, not technically) than copy action.

It's a unnecessary addition, but the Send To function is actually a transfer function over a network, so it's a little out of context with what you said.

PzaThief avatar Jan 04 '24 22:01 PzaThief

Hi @PzaThief

Indeed, this issue is about "older clips".

Can you clarify what you mean by "quick list"?

Chealer avatar Jan 05 '24 01:01 Chealer

Ah, I mean Quick paste list that popped up when you use Activate Ditto shortcut (or just click tray icon). Just select clip via up or down arrow key or left click and then copy it. then Ditto will send the clip to OS.

PzaThief avatar Jan 05 '24 01:01 PzaThief

Thanks @PzaThief , but that does not work, with either 3.24.214.0 or 3.24.246.0 (the current version).

Chealer avatar Jan 05 '24 02:01 Chealer

Could you let me know how did you try? I tried with the same version and Eclipse ide, it works. the popup must disappear if you copied(Ctrl+C) clip.

PzaThief avatar Jan 05 '24 02:01 PzaThief

Could you let me know how did you try?

Of course:

  1. I focus an editable field, such as this one.
  2. I press Ditto's Ctrl+backtick shortcut.
  3. I click clip #2 using my mouse's primary (left) button.
  4. I press Esc to close Ditto.
  5. I press Windows's Ctrl+V shortcut to paste the OS clipboard.

This results in the contents of clip #1 being pasted, rather than #2's.

I tried with the same version and Eclipse ide, it works.

Thanks. I did not try with Eclipse IDE (I used Firefox on GitHub).

Chealer avatar Jan 05 '24 02:01 Chealer

Oh. I made a communication error. lol don't close Ditto manually(remove 4th step) and copy again the clip item. Select clip item → copy it → paste it where you want. Ditto will be disappear by itself when you copy clip item.

PzaThief avatar Jan 05 '24 02:01 PzaThief

Ah, well thanks anyway @PzaThief but I do not want to paste the clip. This issue is about sending a clip to the OS clipboard.

Chealer avatar Jan 05 '24 03:01 Chealer

paste is optional. if you copy clip item in list, the clip will be sent to OS clipboard.

PzaThief avatar Jan 05 '24 03:01 PzaThief

I am sorry but that does not work. If I click an item, nothing happens. If I click it a second time, nothing more happens (Ditto still remains open). My Ditto's Send To menu does not offer sending to the OS clipboard.

Chealer avatar Jan 05 '24 03:01 Chealer

copy the item after click. click is just select step, so now you need to copy it. and Ditto's Send To is about network sharing function not about OS clipboard.

PzaThief avatar Jan 05 '24 03:01 PzaThief

The clips are already copied (that is how they were added in Ditto). What I am asking is a way to send an "old clip" to the operating system's clipboard.

Chealer avatar Jan 05 '24 03:01 Chealer

Yes. it's what you want. if you copy the clip again, Ditto will send it to OS and do not copy again.

PzaThief avatar Jan 05 '24 03:01 PzaThief

Sorry, I cannot make sense of your sentence. Could you please write the method you propose in a language other than English? I understand French, English, Spanish and Ido.

Chealer avatar Jan 05 '24 03:01 Chealer

@Chealer maybe like this: (by the way i change Ditto shortcut ctrl + ` to ctrl + alt +v

https://github.com/sabrogden/Ditto/assets/34770799/3b956e50-559f-48c0-a3b1-73d4ccc0ed67

ariefcfa avatar Jan 05 '24 13:01 ariefcfa

Ooooohh😮, that's a lot clearer @ariefcfa , thank you! That does work for me. So the "Copy Selection" command sends the clip to the OS clipboard and does nothing else? If so, is it normal that it cannot be used with the mouse (only with a shortcut)?

Chealer avatar Jan 06 '24 01:01 Chealer

@Chealer no worries :).

So the "Copy Selection" command sends the clip to the OS clipboard and does nothing else?

i think so

... cannot be used with the mouse (only with a shortcut)?

i tested it, and it can be used with the mouse. for example:

https://github.com/sabrogden/Ditto/assets/34770799/20e3115a-a9ed-40a7-a64e-90dd27cb7c6f

ariefcfa avatar Jan 06 '24 07:01 ariefcfa

Oooh😮, I see, thanks again @ariefcfa But what I meant is that there is no way to send to the Windows clipboard via the clip's contextual menu (right-click), right? There is no way to do that by default?

Chealer avatar Jan 06 '24 13:01 Chealer