Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-20-2014, 05:32 PM
|
#1
|
Member
Registered: Oct 2014
Posts: 961
|
Fixing nano's screwing up of line endings without having to learn a new editor
My way:
1. install joe
2. # echo 'alias nano="jpico"' >> ~/.zshrc
3. Profit!
I'm not entirely sure if there's a way to actually make nano stop wrapping a file where it doesn't fit, but my solution works surprisingly well too.
|
|
|
11-20-2014, 07:33 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,985
|
Did you look at /etc/nanorc? Here's bitn (there's a lot more I didn't bother to read):
Code:
## Don't add newlines to the ends of files.
# set nonewlines
## Don't wrap text at all.
# set nowrap
.....
## Enable soft line wrapping (AKA full-line display).
# set softwrap
As an aside, I did not know there was a "nanorc" file and I don't use nano; this was a shot in the dark. I have learned, though, looking for an *rc file usually yields results.
Last edited by frankbell; 11-20-2014 at 07:35 PM.
|
|
1 members found this post helpful.
|
11-20-2014, 07:42 PM
|
#3
|
Member
Registered: Oct 2014
Posts: 961
Original Poster
|
Oh, that's nice. Is there a similar trick to make it read German umlauts properly?
|
|
|
11-20-2014, 08:51 PM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,985
|
Quote:
Oh, that's nice. Is there a similar trick to make it read German umlauts properly?
|
I have no idea, but I suspect that has more to do with the selected keyboard language than with the particular program.
This may help. https://bbs.archlinux.org/viewtopic.php?id=161116
|
|
|
11-21-2014, 03:15 AM
|
#5
|
Member
Registered: Oct 2014
Posts: 961
Original Poster
|
As they're even displayed improperly on load, I doubt it's the keyboard. :/
|
|
|
All times are GMT -5. The time now is 04:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|