I find this helpful when replicating documents since you wouldn't have to browse through the original directory when renaming the document when it's untitled. You also get to have a pattern from the original filename. It becomes very convenient along with in-place renaming.
I'm happy with how it is but perhaps people would want it to be configurable so that it can be disabled, or given with a different naming format. The latter wouldn't sound easy though.
Reasons for choosing `.copy-xx:`
- Lowercase because it's less noisy. - A dash to make it more distinguishable with the numbers. - 2 digits because it's good enough. 1-digit is a little conservative. 3-digits is overkill. - Prefixed with '.copy' because `.xx` files could exist and could confuse the user; and '.copy' over '.clone' because it's shorter, and it's also common among some file managers, I think.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1191
-- Commit Summary --
* Give '.copy-xx' filenames to cloned documents * Do not set cloned documents as readonly
-- File Changes --
M src/document.c (36)
-- Patch Links --
https://github.com/geany/geany/pull/1191.patch https://github.com/geany/geany/pull/1191.diff