Miscellaneous Macros
Prev | Appendix F. Macros Included With jEdit | Next

## Miscellaneous Macros

While these macros do not fit easily into the other categories, they all provide interesting and useful functions.

- `Display_Abbreviations.bsh`

  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_Actions.bsh`

  Displays a list of all the actions known to jEdit categorised by their action set.

  This macro can be a useful reference if you want to use the jEdit 4.2 action bar.

- `Display_Character_Code.bsh`

  Display int and hex values for the character at the caret, in the status bar.

- `Display_Shortcuts.bsh`

  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`

  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`

  Converts byte characters to their hex equivalent, and vice versa.

- `HyperSearch_Results_to_Buffer.bsh`

  Writes HyperSeach results to a new buffer.

- `Make_Bug_Report.bsh`

  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`

  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`

  Displays in a tree format all running Java threads of the current Java Virtual Machine.

Prev | Up | Next
Java Code Macros | Home | Property Macros