sabrogden / Ditto

Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.
https://ditto-cp.sourceforge.io/
3.74k stars 195 forks source link

Trim paste doesnt work (Paste, Trim White Space) #356

Open marko090591 opened 1 year ago

marko090591 commented 1 year ago

Hello

When pasting text with ditto cliboard menager with option shown bellow text is not trimed as it is in excell when trim option is used.

Ditto 24 10 2022 19 32

Original text

aaaa   dsfds   a

d d đđ


Text copyed with ditto cliboard menager with option trim

aaaa   dsfds   a

d d đđ


Excell trim function which works

aaaa

dsfds

a

d d đđ

marko090591 commented 1 year ago

Hello

Any comment. The problem with triming of white spaces is not fixed.

chaoscreater commented 6 months ago

If you assign a mouse click to that, it works. For example, ALT + Middle click works fine.

However, if you assign any key combination or even a single letter key, it doesn't do anything.

marko090591 commented 6 months ago

Hello

I tryed thaht option without succes. Version listed bellow. I tryed to trim text listed in nova 4.txt. Give me some solutions. Thank you.

nov 4.txt

P MARKO S  11 20 03 21 2024

https://github.com/sabrogden/Ditto/assets/52610785/52f65aca-eb18-4506-9aae-a11dd1229437

chaoscreater commented 6 months ago

If you assign a mouse click to that, it works. For example, ALT + Middle click works fine.

However, if you assign any key combination or even a single letter key, it doesn't do anything.

I figured it out.

For that particular option (Paste, Trim White Space), both the mouse and keyboard combination only works when you use them in Ditto itself. You bring up Ditto's saved clips, then you do your mouse or keyboard shortcuts there. This is very confusing because I thought it would just work on ANY app. Normally, you'd want to just be in the app of interest (e.g. Word) and paste in there directly, using keyboard shortcut.

In the other menu settings of Ditto, you can configure keyboard shortcuts and those work fine outside of Ditto itself. I think there needs to be better distinction between how the keyboard/mouse shortcut works for some settings.

marko090591 commented 6 months ago

g up Ditto's saved clips, then you do your mouse o

I dont understand. why doesn not Paste, Trim White Space work when you copy text and then paste it in another app. Whaths the meaning when you use them in Ditto itself?

chaoscreater commented 6 months ago

No idea. I'm asking the same question as you. The dev needs to look at this.