This is an alternative (which I find better) to https://github.com/geany/geany/pull/1191.
When cloning documents, a filename that's similar to the original - with a `.clone` extension appended to it, is given to the clone. The new filename is unique. It starts first with `filename.clone`. If the filename exists or is used by another document, a number is appended to it (e.g. `.clone1`), which increments until a unique filename is found.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1197
-- Commit Summary --
* Give '.cloneX' filenames to cloned documents * Add documentation * Use locale-encoded string when testing if file exists
-- File Changes --
M doc/geany.txt (6) M src/document.c (46)
-- Patch Links --
https://github.com/geany/geany/pull/1197.patch https://github.com/geany/geany/pull/1197.diff