maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Warning to anyone using GNU nano from Extras! (https://talk.maemo.org/showthread.php?t=64099)

GameboyRMH 2010-10-20 13:46

Warning to anyone using GNU nano from Extras!
 
If anyone is using GNU nano from Extras as a text editor, beware that it automatically inserts line breaks where your lines wrap by default, which could seriously mess up any scripts / system files you're working on! To fix this run:

echo "set nowrap" > ~/.nanorc

This will create a config file (used by both user and root, since they have the same home directory) for nano and tell it not to wrap (usually this is set by default on most distros).

Even experienced Linux users like myself may be used to Nano having nowrap set by default, and might only find that Maemo is different after they mess up a critical config file!

jedi 2010-10-20 13:47

Re: Warning to anyone using GNU nano from Extras!
 
Real men don't use Nano....

pelago 2010-10-20 13:48

Re: Warning to anyone using GNU nano from Extras!
 
Thanks, although I've always used "nano -w" myself for the last few years when I came across the same problem in an old debian. If it's true that most distros these days come with nowrap as standard, then maybe this should be reported as a bug against the maemo nano package.

GameboyRMH 2010-10-20 13:49

Re: Warning to anyone using GNU nano from Extras!
 
Nano is very handy for making quick changes to text files from the terminal...if I want something fancy like vi/emacs I'll just use Scite since I'm not a masochist :p

Tigerite 2010-10-20 13:54

Re: Warning to anyone using GNU nano from Extras!
 
Actually, with the nano-opt package, this file should be saved in /home/user/.nanorc as I've just discovered - it doesn't read the one in /etc at all.

jedi 2010-10-20 13:58

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by GameboyRMH (Post 846096)
Nano is very handy for making quick changes to text files from the terminal...if I want something fancy like vi/emacs I'll just use Scite since I'm not a masochist :p

Vi is very handy for making quick changes to text files from the terminal.

I'm not a masochist either.

GameboyRMH 2010-10-20 14:01

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by Tigerite (Post 846100)
Actually, with the nano-opt package, this file should be saved in /home/user/.nanorc as I've just discovered - it doesn't read the one in /etc at all.

Huh? I'm using nano-opt and it worked fine for me...

Can anyone else confirm?

(make sure it's /etc/nanorc and not /etc/.nanorc)

Tigerite 2010-10-20 14:02

Re: Warning to anyone using GNU nano from Extras!
 
Strange, mine just ignored the file completely. I don't know why, but anyway I guess it's better to put it in /home/user as it saves a precious 10 bytes of rootfs space ;)

GameboyRMH 2010-10-20 16:17

Re: Warning to anyone using GNU nano from Extras!
 
I've just noticed some inconsistent behavior using /etc/nanorc, going to update my first post to recommend ~/.nanorc

int_ua 2013-10-23 16:12

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by jedi (Post 846093)
Real men don't use Nano....

What an offensive comment with nothing but ********. Oh, we have autoreplace here. It was the BS word.

HtheB 2013-10-23 18:49

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by int_ua (Post 1381992)
What an offensive comment with nothing but ********. Oh, we have autoreplace here. It was the BS word.

Dude, first of all, what is wrong with you replying to a VERY OLD thread like this?
Second: You say that his comment is bs, so what is YOUR comment called?

And third: yes, he's right... Real men uses vi, not nano ;)

mikecomputing 2013-10-23 20:02

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by jedi (Post 846104)
Vi is very handy for making quick changes to text files from the terminal.

I'm not a masochist either.

vi drives me nuts. Real men use emacs :cool:

reinob 2013-10-24 11:44

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by mikecomputing (Post 1382044)
vi drives me nuts. Real men use emacs :cool:

Real men don't discuss about editor preferences. That's so lame.

robthebold 2013-10-24 14:21

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by int_ua (Post 1381992)
What an offensive comment with nothing but ********. Oh, we have autoreplace here. It was the BS word.

It's a joke.

wolke 2013-10-24 16:38

Re: Warning to anyone using GNU nano from Extras!
 
the only topics worth reviving a three-year-dead-thread:
1) bsd vs gpl
2) vim vs emacs
3) conservative vs liberal
4) atheism vs theism
5) truth/beauty vs top/bottom

personally, im for truth/beauty. who wants to have a go?

marmistrz 2013-10-24 17:39

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by wolke (Post 1382203)
the only topics worth reviving a three-year-dead-thread:
1) bsd vs gpl
2) vim vs emacs
3) conservative vs liberal
4) atheism vs theism
5) truth/beauty vs top/bottom

personally, im for truth/beauty. who wants to have a go?

And why not 6) algebraic vs graphic solving of equations? :D

wolke 2013-10-24 17:53

Re: Warning to anyone using GNU nano from Extras!
 
oooh sounds like fun, which one now. ok.

leibniz gave us calculus so we wouldnt need to scratch pictures in the sand!

int_ua 2013-10-25 00:25

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by HtheB (Post 1382026)
Dude, first of all, what is wrong with you replying to a VERY OLD thread like this?
Second: You say that his comment is bs, so what is YOUR comment called?

I consider that comment offensive, sexist, overall discriminatory and just plain rude. It was left like this and with jedi's high count of posts/received thanks plus two thanks to the post in question it may look like dominant in the community for a newcomer or a by-passer. I'm just very tired of fanatics trying to shove their beloved editor/OS/religion/whatever down everyone's throat.

P.S. I don't demand any deletion (ignore the flag please). I've just said what I think about it and that's enough.

Quote:

Originally Posted by robthebold (Post 1382182)
It's a joke.

comments with jokes ⊆ comments

mikecomputing 2013-10-25 00:57

Re: Warning to anyone using GNU nano from Extras!
 
kate is better than gedit,

wolke 2013-10-25 01:10

Re: Warning to anyone using GNU nano from Extras!
 
editor wars are generally useless because everyone who fights them already knows theyre right. the problem is that the two sides are usually arguing over COMPLETELY DIFFERENT THINGS.

which-editor-is-objectively-the-best VS preferences-are-always-subjective

the latter is usually the camp saying STOP WITH THE PREACHING AND JUST LET ME LIVE MY LIFE, while the former says OBJECTIVE REALITY! IT EXISTS! YOU LIVE THERE! USE VIM, DAMNIT!

being right doesnt always make you right...

Mentalist Traceur 2013-10-25 01:13

Re: Warning to anyone using GNU nano from Extras!
 
Guys, relax. We all know the truly correct way to text edit is by manually opening up your storage media and using tools of microscopic precision to flip the relevant bits.

wolke 2013-10-25 01:22

Re: Warning to anyone using GNU nano from Extras!
 
hah! amateurs. real men use subsonic chanting to make subtle alterations in cosmic radiation, probabilistically degrading the hard drive over periods of thousands of years.

jedi 2013-10-25 11:34

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by int_ua (Post 1382287)
I consider that comment offensive, sexist, overall discriminatory and just plain rude. It was left like this and with jedi's high count of posts/received thanks plus two thanks to the post in question it may look like dominant in the community for a newcomer or a by-passer. I'm just very tired of fanatics trying to shove their beloved editor/OS/religion/whatever down everyone's throat.

P.S. I don't demand any deletion (ignore the flag please). I've just said what I think about it and that's enough.


comments with jokes ⊆ comments

Wow. I just came back here after a long time away after receiving an email notification that someone had revived an ancient thread.

FFS, my comment was intended as a joke - y'know - humor? Admittedly it wasn't one of my best and it wasn't exactly side-splittingly funny but if you have any experience of IT you'd know that the argument over which text editor is better is older than punch cards.

You really think I was trying to force my personal preference of text editor "down everyone's throat"?! I really don't give a monkey's arse what editor you use. It's up to you.

And do you really think that some newcomer or passer-by is going to come across this thread and then decide that the whole board isn't suitable for them just because someone dared to make a joke about f**king text editors?!?

By the way, I'm stuggling to understand what was sexist and discriminatory about HtheB's comment?

Well, that's all from me. Until the next troll revives another ancient thread....

reinob 2013-10-25 11:40

Re: Warning to anyone using GNU nano from Extras!
 
1 Attachment(s)
Well, just to bring this thread back on-topic. Find attached the latest version of nano (version 2.2.6) . It will use /etc/nanorc (--enable-nanorc), but just in case I compiled it with --disable-wrapping-as-root.

Just unzip and place the binary in /usr/local/bin (or wherever you like).

robthebold 2013-10-25 13:51

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by int_ua (Post 1382287)
I consider that comment offensive, sexist, overall discriminatory and just plain rude. It was left like this and with jedi's high count of posts/received thanks plus two thanks to the post in question it may look like dominant in the community for a newcomer or a by-passer. I'm just very tired of fanatics trying to shove their beloved editor/OS/religion/whatever down everyone's throat.

P.S. I don't demand any deletion (ignore the flag please). I've just said what I think about it and that's enough.


comments with jokes ⊆ comments

Dude, why ya sifting through ancient posts to try to take offense at something? Seems like a waste of your time.

Also, emacs is the one true editor. And real men don't use "⊆". ;)

TomJ 2013-10-26 09:09

Re: Warning to anyone using GNU nano from Extras!
 
Quote:

Originally Posted by wolke (Post 1382217)
oooh sounds like fun, which one now. ok.

leibniz gave us calculus so we wouldnt need to scratch pictures in the sand!

LEIBNIZ?!?!?!?

http://imgs.xkcd.com/comics/newton_and_leibniz.png

wolke 2013-10-26 16:57

Re: Warning to anyone using GNU nano from Extras!
 
thanks! i was starting to think no one was going to take the bait.


All times are GMT. The time now is 13:51.

vBulletin® Version 3.8.8