Mousepad is now the default GUI text editor replacing Leafpad.
That good too hear. Maybe.
Where "^X" means "Ctrl+X".:g/^V^M$/s///
Code: Select all
sudo apt install dos2unixI thought you could get rid of the CRLF problem with:-W. H. Heydt wrote: ↑Wed Mar 04, 2020 12:13 amPersonally... I use vi. You can take care of the DOS/Windows "CR/LF" line ending with a straightforward global command...Where "^X" means "Ctrl+X".Code: Select all
:g/^V^M$/s///
Code: Select all
:1,$s/.$//
Yes of course its pre-installed. Try also nano which might be more familiar. Or emacs.
I can't live without nano, it's my absolute favourite command-line text editor.jahboater wrote:Try also nano which might be more familiar
CR and LF are 7-bit ASCII, this message sounds like a bug, or CRLF is not the problem; in which case dos2unix will not help.
Something that can be communicated over a phone to non-technical individuals and does not require mailing any more SD cards to the people I'm trying to help.
Sorry, my mistake. I was replying mainly to previous comments, not the original post.PeterO wrote:So all these suggestions that include "apt install" are not really very helpful !
PeterO
Vi, or some superset of it, is part of the standard Raspbian install. (At least, I've never had to add it to use it.) The executable is 2.12MB. It will, of course, need more than that when running, but nothing like 120MB.
Leafpad and countless other text editors are in the repository.
Code: Select all
sudo apt install leafpad
You could try an offline install:emma1997 wrote:I'm pretty sure this annoying warning did not pop up couple years ago. Can anyone give me a hint how to get an old version of Leafpad running? Maybe it lacks this 'feature'. I probably have a version in some old distribution like Jessie or Stretch but those don't work for Pi4 and didn't immediately find it available. Is it still downloadable anywhere else? Google did not help much.
Code: Select all
sudo apt-get install --download-only leafpad
Code: Select all
ls /var/cache/apt/archives/ | grep "leafpad"Code: Select all
sudo dpkg -i /home/pi/leafpad_<version>.debThat's odd. Vi is very old and mature. I just tried "vi largefile" (a 12,000 line source file) and it loaded instantly on a Pi4.
Yes. Agreed. Perhaps not suitable for beginners. Very powerful though.
That's interesting - Leafpad was the default GUI text editor in Raspbian, but for some reason they switched to Mousepad. Do feel free to file a bug at https://github.com/RPi-Distro/pi-gen to ask them to switch it back - at the very least that should elicit some justification for the switch. The release notes (http://downloads.raspberrypi.org/raspbi ... _notes.txt) don't really give much of a clue as to why the change was made:
I read that as implying that the switch was made because Mousepad has a simpler UI than Leafpad.* Mousepad used as simple text editor instead of leafpad
Using ISO-8859-* character sets in 2020 is a bit quaint. 8859-14 is pretty niche, and entirely covered by UTF-8. It's been at least a decade since 8-bit chars were the norm.
Code: Select all
echo $LANGCode: Select all
LANG=cy_GB leafpad file.txt