[Github-comments] [geany/geany] Add default filenames (.copy-xx) to cloned documents (#1191)

konsolebox notifications at xxxxx
Wed Aug 24 09:49:21 UTC 2016


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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1191
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160824/7c646505/attachment.html>


More information about the Github-comments mailing list