Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

'selection: delete selected text' copies deleted text to clipboard #5573

Closed LeeMSilver closed 1 week ago

LeeMSilver commented 1 week ago

Windows:

First, CudaText appears to be a good replacement for SynWrite - job well done.

I remapped the delete key from delete char right to selection: delete selected text thinking it would not perform the same way as delete char right. Both of the commands copy the deleted text to the clipboard (emulating clipboard: cut.) Because of this I cannot delete text immediately followed by clipboard: paste of text I have previously copied to the clipboard.

What I want to do is:

  1. copy replacement text to clipboard
  2. delete text to be replaced (possibly in multiple locations)
  3. replace with new text

What I have to do is:

  1. delete text to be replaced (possibly in multiple locations)
  2. copy replacement text to the clipboard
  3. replace with new text

All other text-editors allow me to do what I want above. It didn't look like any other key-mapping would accomplish what I want, but maybe I'm missing something.

Alexey-T commented 1 week ago

I did not understand.

did you activate option "auto_copy_clp"? if no, show your user.json file here. I will try to repeat the problem.

LeeMSilver commented 1 week ago

My bad. The description for auto_copy_clp said that for windows the only option is 'c'. I interpreted this as there mus be a non-blank value. Once I set it to ' ' it worked as expected.

Alexey-T commented 1 week ago

Option desc tells:

Configures auto-copying of selected text to clipboard, after selection changes. Option works for all editor fields, not only for UI-tabs editors. Option is string of few chars. if 'c' in value: Copy to usual clipboard (the only possibility on Windows). if 'p' in value: Copy to Unix 'primary selection'.

It looks correct to me.