diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-07 19:00:46 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-07 19:00:46 +0100 |
commit | 63c88b9616a7d9f25ee1d466fbdd74792dec9a37 (patch) | |
tree | c45e4f67c2296b39e4103e8308ead4f3580f78bb /src/ioview.cpp | |
parent | a3a340a9e9e1856a46c079186354f163cfc5febc (diff) | |
download | sciteco-63c88b9616a7d9f25ee1d466fbdd74792dec9a37.tar.gz |
changed save point file format to .teco-<n>-<filename>~
* It is no longer possible to accidentally open save point files
of the same or another SciTECO instance when typing something like
EB*.cpp$
* The use of a trailing ~ is common among editors. These files
will be recognized more easily as temporary by users.
* People will often already have VCS ignore rules for files with
trailing tilde. Therefore SciTECO savepoints will often be
already ignored by VCS.
* Since they still have a unique ".teco" prefix, they will not
be confused by other programs as backup files.
* Also mention in sciteco(1) that save point files are hidden on
Windows.
Diffstat (limited to 'src/ioview.cpp')
-rw-r--r-- | src/ioview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ioview.cpp b/src/ioview.cpp index 2d368ed..b663fcf 100644 --- a/src/ioview.cpp +++ b/src/ioview.cpp @@ -213,7 +213,7 @@ make_savepoint(const gchar *filename) basename = g_path_get_basename(filename); g_snprintf(savepoint_basename, sizeof(savepoint_basename), - ".teco-%d-%s", savepoint_id, basename); + ".teco-%d-%s~", savepoint_id, basename); g_free(basename); dirname = g_path_get_dirname(filename); savepoint = g_build_filename(dirname, savepoint_basename, NIL); |