From 6e4eece98138d07063962926f4a6f877edbd8bb9 Mon Sep 17 00:00:00 2001 From: LarsGit223 Date: Wed, 14 Mar 2018 23:46:23 +0100 Subject: [PATCH] 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. --- doc/geany.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/geany.txt b/doc/geany.txt index c6daa2a86..593453cea 100644 --- a/doc/geany.txt +++ b/doc/geany.txt @@ -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) ------------------------------------------------ -- 2.11.4.GIT