Topic: [SOLVED] nano's undo/redo

I encountered a rather strange problem when using nano in general. When using the undo/redo shortcuts it just says "Nothing in undo buffer!" and nothing happens. Yeah, that's it. Anyone an idea how get undo/redo working in nano?

Last edited by Kekskiller (2010-08-27 18:10:17)

Re: [SOLVED] nano's undo/redo

I didn't know nano had an undo function. What keys do you use to activate it?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] nano's undo/redo

Yeah, I also didn't knew it before I found out how to turn in a decent code editor. The normal key bindings are Meta+U (Alt+U/ESC first, then U) for undo and Meta+E (Alt+E/ESC first, than E) for redo. I'm using the latest stable 2.2.5 build, compiled from source.

Re: [SOLVED] nano's undo/redo

Ok I ran "nano -u" and the Undo (Alt-U) seemed to work fine. If I typed something then did undo, the text went away. If I delete a character and do undo, the character returns.

What are you trying to undo?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] nano's undo/redo

Great, this worked for me, too. I added it with "set undo" to .nanorc for permanent undo support. Thanks for the help, problem solved.

Re: [SOLVED] nano's undo/redo

Kekskiller wrote:

Great, this worked for me, too. I added it with "set undo" to .nanorc

Nice one! smile

Re: [SOLVED] nano's undo/redo

/etc/nanorc   or   ~/.nanorc      ?

I see I have a /etc/nanorc      but have no ~/.nanorc

Jean Vanier wrote "Being Human" and "A Short History of Progress" by Ronald Wright.  Gotta love the Massey Lectures.

Re: [SOLVED] nano's undo/redo

paxmark1 wrote:

/etc/nanorc   or   ~/.nanorc      ?

I see I have a /etc/nanorc      but have no ~/.nanorc

You can create that file and add settings to it. 

man nanorc

Re: [SOLVED] nano's undo/redo

Simply "touch ~/.nanorc" and enjoy your config file :-)

OT:
Since I'm not in front of my Linux box, I tried "man touch" on google. I... think... I'm going to activate the safe search option there...

I'm so meta, even this acronym

Re: [SOLVED] nano's undo/redo

theres a sample nanorc in /usr/share/doc/nano I believe

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: [SOLVED] nano's undo/redo

paxmark1 wrote:

/etc/nanorc   or   ~/.nanorc      ?

I see I have a /etc/nanorc      but have no ~/.nanorc


You can use .nanorc as personal settings file and keep the one in /etc as a backup of a working configuration - like it's (as far as I know) usually done.