Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a clip to OS (Windows) clipboard #574

Open
Chealer opened this issue Dec 7, 2023 · 18 comments
Open

Send a clip to OS (Windows) clipboard #574

Chealer opened this issue Dec 7, 2023 · 18 comments

Comments

@Chealer
Copy link

Chealer commented Dec 7, 2023

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.

@PzaThief
Copy link
Contributor

PzaThief commented Jan 4, 2024

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.

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

Hi @PzaThief

Indeed, this issue is about "older clips".

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

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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.

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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.

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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 can you use translate platform to maintenance translate file. #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).

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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.

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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.

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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.

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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.

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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.

@PzaThief
Copy link
Contributor

PzaThief commented Jan 5, 2024

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

@Chealer
Copy link
Author

Chealer commented Jan 5, 2024

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.

@ariefcfa
Copy link

ariefcfa commented Jan 5, 2024

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

ShareX-3052.mp4

@Chealer
Copy link
Author

Chealer commented Jan 6, 2024

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)?

@ariefcfa
Copy link

ariefcfa commented Jan 6, 2024

@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:

ShareX-3056.mp4

@Chealer
Copy link
Author

Chealer commented Jan 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants