geany/geany — pull request #80 by ntrel (2012-11-16 14:56:15+00:00)
Title: Add 'Document->Clone' menu command

Add a `Document->Clone` menu item to copy the current document text and properties into a new document. This replaces the old *Save As: Open file in a new tab* option. The menu item is easier to understand and is a separate action from saving, so this design is more flexible.

One notable difference is that the new document does not copy the filename - the old behaviour was confusing and error-prone for the user (e.g. editing two documents with the same filename).

This pull also clones some more document properties and disables the *Save As* dialog *Rename* button unless the document exists on disk.