While these macros do not fit easily into the other categories, they all provide interesting and useful functions.
Cascade_jEdit_Windows.bsh
Abstract
Rearranges view and floating plugin windows.
The windows are arranged in an overlapping “cascade” pattern beginning near the upper left corner of the display.
Display_Abbreviations.bsh
Abstract
Displays the abbreviations registered for each of jEdit's editing modes.
The macro provides a read-only view of the abbreviations contained in the “Abbreviations” option pane. Pressing a letter key will scroll the table to the first entry beginning with that letter. A further option is provided to write a selected mode's abbreviations or all abbreviations in a text buffer for printing as a reference. Notes in the source code listing point out some display options that are configured by modifying global variables.
Display_Shortcuts.bsh
Abstract
Displays a sorted list of the keyboard shortcuts currently in effect.
The macro provides a combined read-only view of command, macro and plugin shortcuts. Pressing a letter key will scroll the table to the first entry beginning with that letter. A further option is provided to write the shortcut assignments in a text buffer for printing as a reference. Notes in the source code listing point out some display options that are configured by modifying global variables.
Evaluate_Buffer_in_BeanShell.bsh
Abstract
Evaluates contents of current buffer as a BeanShell script, and opens a new buffer to receive any text output.
This is a quick way to test a macro script even before its text is saved to a file. Opening a new buffer for output is a precaution to prevent the macro from inadvertently erasing or overwriting itself. BeanShell scripts that operate on the contents of the current buffer will not work meaningfully when tested using this macro.
Hex_Convert.bsh
Abstract
Converts byte characters to their hex equivalent, and vice versa.
Include_Guard.bsh
Abstract
Intended for C/C++ header files, this macro inserts a preprocessor directive in the current buffer to ensure that the header is included only once per compilation unit.
To use the macro, first place the caret at the beginning of the header file before any uncommented text. The macro will return to this position upon completion. The defined term that triggers the “include guard” is taken from the buffer's name.
Make_Bug_Report.bsh
Abstract
Creates a new buffer with installation and error information extracted from the activity log.
The macro extracts initial messages written to the activity log describing the user's operating system, JDK, jEdit version and installed plugins. It then appends the last set of error messages written to the activity log. The new text buffer can be saved and attached to an email message or a bug report made on SourceForge.
Run_Script.bsh
Abstract
Runs script using interpreter based upon buffer's editing mode (by default, determined using file extension). You must have the appropriate interpreter (such as Perl, Python, or Windows Script Host) installed on your system.
Show_Threads.bsh
Abstract
Displays in a tree format all running Java threads of the current Java Virtual Machine.
Write_HyperSearch_Results.bsh
Abstract
This macro writes the contents of the “HyperSearch Results” window to a new buffer in a simple text report format.