RED Reference: File Functions

MAIN INDEX FUNCTION OVERVIEW

EDIT, MOVE&SCROLL FILE CUSTOMISATION, HELP, MISC.


new

Key: Alt-n
Menu: File

Open a new, empty window. The text in that window is not linked to any file. A file name must be specified when the file is saved for the first time. Until then, the window title shows the words <no name> instead of the file name.


open

Key: Alt-o
Menu: File

Open a file in another window. A file selection dialogue is shown to select the file. The file specified in the file selection box must exist. To create a new file use new.


open-selection

Key: Shift-Alt-o
Menu: File

"Open Selection" lets you select a name of a file in a text and open the file that you selected. You can, for instance, select the name of an include file and open that file using "Open Selection". The name must be a complete path from the current file's directory - in other words: if you select a pure file name (without a path) it will only work if that file is in the same directory as the file you are currently working on.

This function also works if the selection is in another application. This means that you can, for example, have a directory listing in an xterm, select one of the file names in the xterm window, and use "Open Selection" to open that file (again, subject to that file being in the right directory).


save

Key: Alt-s
Menu: File

Save the text to a file if modified. Typically the file used to save into is the one the text was read from originally or the one that was specified for the last save (whatever happened last). If the text has never been saved, a file selection box is opened to let the user specify a file name. If the file existed before and the option "Make backup when saving" is selected in the prefences dialogue (see preferences), the previous version becomes a backup file. Backup files have the same file name with the added suffix ".~".

If the text was not changed, it will not be saved to the file. Instead, the message "No changes need to be saved" will be displayed in the information area. To force a save (e.g. when you know that the file has changed on disk and you want to save the text even though it has not changed in the editor) select "Save" again. Activating the "Save" function twice forces the text to be saved regardless of whether it has been changed.


save-as

Menu: File

Save the text under a new file name. A file selection box is opened to let the user specify a name. Creates a backup file as described in save.


reload

Menu: File

Reload the buffer from the file. All changes since the last save will be lost and the buffer is reverted to the last saved version. A dialogue is shown before this function is executed to confirm.


close

Key: Alt-w
Menu: File

Close the editor window. If the text had not been saved a dialogue is shown before closing to let the user save the text. If it was the only Red window open, exit Red.


print

Key: Alt-p
Menu: File

Print the text. A dialogue is opened to specify some printing options.

EDIT, MOVE&SCROLL FILE CUSTOMISATION, HELP, MISC.

MAIN INDEX FUNCTION OVERVIEW