[PATCH] file position saving
BÁRTHÁZI András
andras at barthazi.hu
Wed Nov 27 15:05:01 UTC 2002
Hi!
--
File position saving:
--
When you are developing, and you should edit several files, you have to
leave and enter again into files. It can be a lot of time to go back to
the position where you were, when you reenter into the file you would
like to edit again. This option (you can set/unset in editor's
configuration) turns on file position saving, so if you reenter a file,
your cursor will be at the position where you were last time.
The positions are saved in the file "EditPos" in you mc configuration
dir (~/.mc/). The last 1024 file's full name, x;y position is stored on
each line. When you leave the editor, this file will be modified. When
you edit the file, it will be opened again. Locking not necessary, just
if more than one person using the computer at the same time with the
same user. You are unable to do exiting two editor at the same moment.
------
The original files are based on the "2002-11-20-17" snapshot, except the
edit/editoptions.c file that based on the CVS version (Pavel told me to
do this way). Actually, I used to compile the snapshot version with the
CVS-editoptions.c and it worked (the changes was just optimizations).
I'm using the pathed version during my daily work, and I expected no
problem with them.
Bye,
Andras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-filepos.udiff
Type: application/octet-stream
Size: 12573 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021127/268a31bf/attachment.obj>
More information about the mc-devel
mailing list