Utilities>File System Browser displays the file system browser. By default, the file system browser is shown in a floating window. It can be set to dock into the view in the Docking pane of the Utilities>Global Options dialog box; see the section called “Window Docking”.
The file system browser can be customized in the Utilities>Global Options dialog box.
The directory to browse is specified in the Path text field. Clicking the mouse in the text field automatically selects its contents allowing a new path to be quickly typed in. If a relative path is entered, it will be resolved relative to the current path. This text field remembers previously entered strings; see Appendix C. The same list of previously browsed directories is also listed in the Utilities>Recent Directories menu; selecting one opens it in the file system browser.
To browse a listed directory, double-click it (or if you have a three-button mouse, you can click the middle mouse button as well). Alternatively, click the disclosure widget next to a directory to list its contents in place.
To browse higher up in the directory hierarchy, double-click one of the parent directories in the parent directory list.
Files and directories in the file list are shown in different colors depending on what glob patterns their names match. The patterns and colors can be customized in the File System Browser>Colors pane of the Utilities>Global Options dialog box.
To see a specific set of files only (for example, those whose names end with .java), enter a glob pattern in the Filter text field. This text fields remembers previously entered strings.
See Appendix D for information about glob patterns.
Unopened files can be opened by double-clicking (or by clicking the middle mouse button). Open files have their names underlined, and can be selected by single-clicking. Holding down Shift while opening a file will open it in a new view.
Clicking a file or directory with the right mouse button displays a popup menu containing various commands.
The file list sorting algorithm used in jEdit handles numbers in file names in an intelligent manner. For example, a file named section10.xml will be placed after a file named section5.xml. A conventional letter-by-letter sort would have placed these two files in the wrong order.
The file system browser has a tool bar containing a number of buttons. Each item in the Commands menu (described below) except Show Hidden Files and Encoding has a corresponding tool bar button.
Clicking the Commands button displays a menu containing the following items:
Parent Directory - moves up in the directory hierarchy.
Reload Directory - reloads the file list from disk.
Root Directory - on Unix, goes to the root directory (/). On Windows and MacOS X, lists all mounted drives and network shares.
Home Directory - displays your home directory.
Directory of Current Buffer - displays the directory containing the currently active buffer.
New File - opens new, empty, buffer in the current directory. The file will not actually be created on disk until the buffer is saved.
New Directory - creates a new directory after prompting for the desired name.
Search in Directory - displays the search and replace dialog box set to search all files in the current directory. If a file is selected when this command is invoked, its extension becomes the file name filter for the search; otherwise, the file name filter entered in the browser is used. See the section called “Search and Replace” for details.
Show Hidden Files - toggles if hidden files are to be shown in the file list.
Encoding - a menu for selecting the character encoding to use when opening files. See the section called “Character Encodings”.
Clicking the Plugins button displays a menu containing plugin commands. For information about plugins, see Chapter 8.
Clicking the Favorites button displays a menu showing all directories in the favorites list. To add the selected directory to the favorites (or the current directory, if there is no selection), invoke Add to Favorites from this menu. To remove a directory from the favorites, invoke Edit Favorites, which will show the favorites list in the file system view; then select Delete from the appropriate directory's right-click menu.
The file system browser can be navigated from the keyboard:
Enter - opens the currently selected file or directory.
Shift-Enter - opens the currently selected file in a new view, or the currently selected directory in a new file system browser window.
Left - goes to the current directory's parent.
Up - selects previous file in list.
Down - selects next file in list.
/ - displays the root directory.
~ - displays your home directory.
- - displays the directory containing the current buffer.
Typing the first few characters of a file's name will select that file.
The file system tree must have keyboard focus for these shortcuts to work. They are not active in the Path or Filter text fields.