Page 1 of 1

Joining Lines

Posted: 12.07.2024 11:19
by freecicero
I find it very common that when I cut and paste a selection from a browser into a text file, I think have to "join" the lines to get rid of extraneous line feeds at the end of a paragraph (series) of lines.

I see in Sublime there is a "Join Lines" function as described here:

https://forum.sublimetext.com/t/removin ... line/14229

https://forum.sublimetext.com/t/how-to- ... lime/65994

and similar in VSCode - https://stackoverflow.com/questions/464 ... -two-lines

Can I ask how you guys "join lines" here in Cudatext?

I see there is a "Line Operations' menu under "Edit,' but "joining" is not included, and in my searches so far I have found very few occurrences of "join" in the command pallet or wiki.

i was also working to get this done by a search/replace function, but for some reason when I toggle the "unprintable characters" or hit the paragraph icon on the toolbar, I am not seeing any characters appear at the end of my lines, so I can't figure out what to search for and replace.

Thanks in advance!

Re: Joining Lines

Posted: 12.07.2024 11:28
by main Alexey
1. join lines - it is a command in the CudaExt plugin.
first, install the CudaExt.
in the command palette it is: "plugin: CudaExt: Align: Join lines".

2.
> I am not seeing any characters appear at the end of my lines, so I can't figure out what to search for and replace.
dialog "Options / Unprinted chars" allows to customize this.
this dialog is the UI method to configure the option "unprinted_content" in user.json.
does it help?

Re: Joining Lines

Posted: 12.07.2024 11:39
by main Alexey
Now I added info about 'join lines' to
https://wiki.freepascal.org/CudaText_VS_other_editors

Re: Joining Lines

Posted: 12.07.2024 11:55
by freecicero
Thank you again! I am sorry I missed the "CudaExt" plugin. I am still reading the wiki etc and missed that so far.
As to the unprinted characters, I had seen that option box and played with the settings, but nothing I do seems to show any characters or arrows or paragraph signs at the end of the lines.

Am i setting the options wrong?

(I am using Arch linux in XFCE)

Thanks

Re: Joining Lines

Posted: 12.07.2024 12:05
by main Alexey
settings looks like OK. so maybe the theme (UI) has poor colors here?

1. try the same on 'default' theme
2. tell me the name of your UI theme (from addons manager, I guess)

Re: Joining Lines

Posted: 12.07.2024 12:09
by main Alexey
you have theme 'Atom One dark'. and yes, it has poor color for unprinted-chars! I will fix the theme and update it in addons-manager in 30 mins.

Re: Joining Lines

Posted: 12.07.2024 12:26
by main Alexey
done; pls update the theme via "Plugins / Addons Manager / Update".

Re: Joining Lines

Posted: 12.07.2024 13:51
by freecicero
I should have thought about the themes --- yes that fixed things instantly!

You are incredible - thank you!