File Operations

File Operations

This menu contains entries for manipulating files, printing and terminating CRiSP. The following entries are available:

This creates a new buffer with no name. When you come to save the buffer you will be prompted for a file name. If the buffer isn’t saved before exiting from CRiSP then you will be prompted before CRiSP terminates.

Pops up a dialog to allow you to select an existing file to edit.

Open include file
This is designed to be used to load a file, where the filename is specified in the current buffer. Typically this is used to load a file referenced in a #include directive. If a region has been selected, then CRiSP will examine the name in the region and attempt to load it. Otherwise it will use the whole line, stripping off leading #include and removing and <..> or “” quotes.
CRiSP will use a variety of search paths to attempt to find the files. It will use the INCLUDEPATH environment variable to search (used by Microsoft Visual C++) and will also check standard Unix locations: /usr/include, /usr/openwin/include, /usr/X11/include.

You can specify your own search path environment variable: USER_INCLUDE_PATH as a colon separated list of directories to search.
If the file is not found in any of these locations, then CRiSP will search the list of project files to find a suitable match.
CRiSP attempts to honor the rules for system and user include files where possible, but in the absence of the actual compiler directives, can fail to load the file.

This function should be usable even by non-program files, e.g. by simply specifying a filename on a line on its own.

Closes the current buffer. If you have made any changes, you are prompted to save them before the buffer is closed.
You can achieve the same effect by using the <Ctrl-Minus>(Ctrl and the ‘minus’ key on the main part of the keyboard, not the minus key on the keypad).

Close all
Closes all the loaded buffers. Modified buffers which have not been saved will not be closed, and will remain loaded inside CRiSP. In this case, a message at the bottom of the screen will be displayed telling you how many buffers were not closed.

Insert file
Pops up a dialog allowing you to select a file to include in the current buffer. The dialog box is similar to the FileOpen dialog, allowing you to select a file to include.
You can use the <Alt-R>keyboard short cut to invoke the same command.

Saves (writes) the currently modified buffer to disk.
You can use the <Alt-W>keyboard short cut to invoke the same command.

Save as
Pops up a dialog allowing you to select a directory and filename where the current buffer is to be saved rather than saving under the default name.
A dialog box similar to the FileOpen dialog is displayed allowing you to select a directory and name to save the file as.
You can specify the file type, which is useful if you are on a Windows platform and want to save the file in Unix format, or vice versa. The Normal option is the default which is the mode in which the file was loaded in.

You can also append to an existing file by selecting the Append toggle option.

Save all
Saves all modified buffers. It is quite convenient if you are making a lot of changes to a variety of buffers, and are delaying saving until all the files are synchronised.

Filter region
Pops up a dialog box allowing you to type in the name of an external command. The current buffer is passed to the command and the result of executing that command is read back into the buffer.

File operations
Submenu containing a command which allows you to reload the current buffer from disk. This allows you to discard any changes you have made (you are prompted before the file is reloaded).

Find files
Pops up the Find Files dialog which allows you to search for files which match a filename (similar to the Windows Find Files applet and the Unix find command)..

Change Directory

Pops up a dialog which allows you to change the current working directory.

Dialog allowing you to print the current buffer.

Command line
Displays a command line prompt where you can enter commands not directly accessible from the keyboard or menus.

Closes the current top-level window. If this is the last top-level window then CRiSP will exit. Prompts you to save any unchanged buffers.

This sub-menu provides access to the FTP Site manager used for opening files and defining sites, and for uploading files.

Most recently edit files list
Allows you to reload a recently edited file. These entries display the most-recently edited file list. The default set up allows room for up to the last six files to be displayed. You can change the number of items which will be displayed here by accessing the OptionsScreen settings menu option.

To avoid a menu which is too wide, CRiSP abbreviates the file names by putting in ... in the middle of the path name to a file.


"I am a newcomer to Linux, and I was very disappointed with "standard" UNIX editors like vi and emacs. The user interface is so unfriendly and the feature set is so antiquated. I heard about CRiSP on the comp.editors newsgroup and downloaded a free demo...It's just wonderful! Thoroughly modern, easy to use, powerful, flexible; it's what a UNIX programmer's editor should be."

Crisp Screenshots