[geany/geany] 6e4eec: manual: added documentation about replacement of 'untitled.ext' with filename (#1804)

LarsGit223 git-noreply at xxxxx
Wed Mar 14 22:46:23 UTC 2018


Branch:      refs/heads/master
Author:      LarsGit223 <LarsGit223 at users.noreply.github.com>
Committer:   elextr <elextr at gmail.com>
Date:        Wed, 14 Mar 2018 22:46:23 UTC
Commit:      6e4eece98138d07063962926f4a6f877edbd8bb9
             https://github.com/geany/geany/commit/6e4eece98138d07063962926f4a6f877edbd8bb9

Log Message:
-----------
manual: added documentation about replacement of 'untitled.ext' with filename (#1804)

On "Save As..." a text in the form 'untitled.ext' will be replaced with the chosen
filename if it is found in the first 3 lines of the document. This PR adds a description
of the feature to the manual. Fixes #753.


Modified Paths:
--------------
    doc/geany.txt

Modified: doc/geany.txt
9 lines changed, 9 insertions(+), 0 deletions(-)
===================================================================
@@ -538,6 +538,15 @@ there is a selection, only the selected text is copied. This can be
 useful when making temporary copies of text or for creating
 documents with similar or identical contents.
 
+Automatic filename insertion on `Save As...`
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+If a document is saved via `Document->Save As...` then the filename is
+automatically inserted into the comment header replacing text like
+`untitled.ext` in the first 3 lines of the file. E.g. if a new ``.c``
+file is created using `File->New (with Template)` then the text `untitled.c`
+in line 2 would be replaced with the choosen file name on `Save As...`
+(this example assumes the default file templates being used).
+
 
 Character sets and Unicode Byte-Order-Mark (BOM)
 ------------------------------------------------



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list