Can I change the location of backup files?

40 views
Skip to first unread message

Ethan Pooley

unread,
Feb 12, 2013, 5:15:29 PM2/12/13
to nicee...@googlegroups.com
As with many text editors, there are a variety of circumstances under which ne will leave you with files like this lying around:

myfile.txt~

I was thinking it would be a neat trick to have all of these created in /tmp or /tmp/ne so that they are automatically cleaned up on a regular basis. I was unable to find a way to do this via the documentation. Am I missing anything?

Also, I've been using ne for a decade now and want to thank everyone who's been involved in any way. A great little editor for those of us who do not love the arcane.

utoddl

unread,
Feb 12, 2013, 7:35:17 PM2/12/13
to nicee...@googlegroups.com

Also, I've been using ne for a decade now and want to thank everyone who's been involved in any way. A great little editor for those of us who do not love the arcane.

Thanks for the kind words, Ethan. I often wonder how many people use ne and how they feel about it, but we get very little feedback. Glad you like it.

As for files with "~" appended to their names... I'm not aware of a way ne would do that. Other editors do though, and some processes including "cp" and "rsync" will use a "~" suffix when given the --backup option. I'm pretty sure these files are the result of some process other than ne.

The only circumstances I know of where ne will save a file under a different name is when it's killed by an external signal. In that case, it would save any modified named buffers with a "#" prepended (as "#myfile.txt" for example), and modified unnamed buffers as "0x" followed by some hex characters. (I just tried it and got a file named "0x81f3400.1f41".)

In the first case, the files are saved in the same directory as the original file; in the second case, they are saved in whatever directory was current when ne was started. But the answer to your question is, no, there is no way to change the directory these files are saved into.

Ethan Pooley

unread,
Feb 12, 2013, 7:50:02 PM2/12/13
to nicee...@googlegroups.com
Duh, my bad. These must be from gedit when I open the same files. Sorry to bother you - at least it was a reason to pass along the kudos!


--
You received this message because you are subscribed to the Google Groups "niceeditor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to niceeditor+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages