(Created page with "<seo title="Closing Files and Windows | vEdit" description="Learn the many ways to close files being used in vEdit, such as with shortcuts or using the tool bar, without exiti...") |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
Alternatively, you can select <kbd>FILE</kbd> > <kbd>Close</kbd> ( <kbd>Ctrl-W</kbd> ) to close the current buffer, saving or abandoning any file in it. It also closes all windows attached to the buffer. In the typical case where each file is displayed in only one window, <kbd>FILE</kbd> > <kbd>Close</kbd> and <kbd>WINDOW</kbd> > <kbd>Close</kbd> are identical. | Alternatively, you can select <kbd>FILE</kbd> > <kbd>Close</kbd> ( <kbd>Ctrl-W</kbd> ) to close the current buffer, saving or abandoning any file in it. It also closes all windows attached to the buffer. In the typical case where each file is displayed in only one window, <kbd>FILE</kbd> > <kbd>Close</kbd> and <kbd>WINDOW</kbd> > <kbd>Close</kbd> are identical. | ||
| − | <div class="callout note">vEdit always keeps one buffer and window open. If you attempt to close the last window, it only closes the file. The last buffer and corresponding window will remain open, but will be empty</div> | + | <div class="callout note"> |
| + | vEdit always keeps one buffer and window open. If you attempt to close the last window, it only closes the file. The last buffer and corresponding window will remain open, but will be empty | ||
| + | </div> | ||
| + | |||
| + | Use <kbd>FILE</kbd> > <kbd>Exit</kbd> when you are ready to exit vEdit. It will let you selectively save or abandon each modified file, or save/abandon all files. | ||
| + | |||
| + | ==How to Close the Current File== | ||
| + | |||
| + | #Select <kbd>WINDOW</kbd> > <kbd>Close</kbd> ( <kbd>Ctrl-F4</kbd> ) or double-click the window’s icon. Alternatively, select <kbd>FILE</kbd> > <kbd>Close</kbd> ( <kbd>Ctrl-W</kbd> ). | ||
| + | #If the current file has been modified and not yet saved to disk you are prompted with: | ||
| + | #*'''Save current file? [Yes] [No-Abandon]''' | ||
| + | #If you select [Yes], vEdit will save the current file with all modifications. If you select [No], vEdit will abandon changes that have been made since the last time the file was saved. In either case, it also closes the current window and buffer. | ||
| + | #If you select [Yes] to save the text, but no file is open, you will be prompted for the name under which to save the file: | ||
| + | #*'''No filename specified! Enter “Save As” filename''' | ||
| + | #Enter the desired name for the file. | ||
| + | |||
| + | You can also close a file by double-clicking the mouse on the window’s left-side icon. This is equivalent to <kbd>WINDOW</kbd> > <kbd>Close</kbd>. | ||
| + | |||
| + | <kbd>WINDOW</kbd> > <kbd>Remove</kbd> lets you close any window without first switching to it. Its primary purpose is to close (remove) special “Command mode” windows that were created in the vEdit macro language or with <kbd>WINDOW</kbd> > <kbd>Split</kbd>. | ||
| + | |||
| + | ==Related Resources== | ||
| + | *[[Editing_Multiple_Files|Editing Multiple Files Overview]] | ||
| + | *[[Main_Page#section-editing|Edit EBCDIC, ASCII, ANSI, Hex, Text and Multiple Files]] | ||
| + | *[[Main_Page|Wiki Home]] | ||
The easiest way to close a file, without exiting vEdit, is to double click the window’s icon; this is the same as selecting WINDOW > Close (Ctrl-F4). If this is the only window displaying the file, which is the typical case, it closes the file and the corresponding buffer.
If a file is displayed in two or more windows, WINDOW > Close does not close the file until you close its last window.
Alternatively, you can select FILE > Close ( Ctrl-W ) to close the current buffer, saving or abandoning any file in it. It also closes all windows attached to the buffer. In the typical case where each file is displayed in only one window, FILE > Close and WINDOW > Close are identical.
vEdit always keeps one buffer and window open. If you attempt to close the last window, it only closes the file. The last buffer and corresponding window will remain open, but will be empty
Use FILE > Exit when you are ready to exit vEdit. It will let you selectively save or abandon each modified file, or save/abandon all files.
You can also close a file by double-clicking the mouse on the window’s left-side icon. This is equivalent to WINDOW > Close.
WINDOW > Remove lets you close any window without first switching to it. Its primary purpose is to close (remove) special “Command mode” windows that were created in the vEdit macro language or with WINDOW > Split.