File Management Macros
Prev | Appendix F. Macros Included With jEdit | Next

## File Management Macros

These macros automate the opening and closing of files.

- `Browse_Buffer_Directory.bsh`

  Opens a the current buffer's directory in the file system browser.

- `Browse_Directory.bsh`

  Opens a directory supplied by the user in the file system browser.

- `Buffer_Switcher.bsh`

  Displays a modal dialog listing all open buffers, allowing one to switch to and/or close buffers. `ENTER` switches to a buffer and closes the dialog, `DELETE` closes a buffer, `SPACE` switches to a buffer but does not close the dialog.

- `Close_All_Except_Active.bsh`

  Closes all files except the current buffer.

  Prompts the user to save any buffer containing unsaved changes.

- `Copy_Path_to_Clipboad.bsh`

  Copies the current buffer's path to the clipboard.

- `Copy_Name_to_Clipboad.bsh`

  Copies the current buffer's filename to the clipboard.

- `Duplicate_Buffer.bsh`

  Duplicates the current buffer into a new one.

- `Delete_Current.bsh`

  Deletes the current buffer's file on disk, but doesn't close the buffer.

- `Glob_Close.bsh`

  Closes all open buffers matching a given glob pattern.

- `Insert_Selection.bsh`

  Assumes the current selection is file path and tries replaces the selection with the contents of the file. Does nothing if no text is selected or the selection spans multiple lines.

- `Next_Dirty_Buffer.bsh`

  Switches to the next dirty buffer, if there is one.

- `Open_Path.bsh`

  Opens the file supplied by the user in an input dialog.

- `Open_Selection.bsh`

  Opens the file named by the current buffer's selected text. Current VFS browser directory is also tried as a parent of the filename, but only as a local path.

- `Open_Selection_In_Desktop.bsh`

  Opens the file named by the current buffer's selected text using `Desktop`. That is opens the file using operating system's default application. If a link is selected, it is browsed instead, using default web browser. If no selection is active, the path under caret is used.

- `Send_Buffer_To_Next_Split.bsh`

  If bufferset scope is set to EditPane, the current buffer is added to the next Editpane's bufferset.

- `Toggle_ReadOnly.bsh`

  Toggles a local file's read-only flag. Uses platform-specific commands, so it only works on Windows, Unix and MacOS X.

Prev | Up | Next
Editing Macros | Home | User Interface Macros