jEdit Community - Resources for users of the jEdit Text Editor
New macros for November 2001
Submitted by jgellene on Friday, 23 November, 2001 - 15:00
  • Run_Script.bsh - Runs script using interpreter based upon buffer's editing mode (by default, determined using file extension). This macro was recently revised to handle paths containing spaces correctly under Windows.

  • Add_Import.bsh - Adds an import statement to the beginning of a Java source file and returns the editing caret to the starting location.

  • Clip_Get_and_Set.bsh - Creates get() and set() methods from variables contained in selected text. This macro works by grabbing text on the lines of the selected text and parsing it to get the first two tokens that are not contained in the macro's global string variable 'modifiers'. It then copies simple get() and set() methods to the clipboard.

  • Cut_Line.bsh - Cuts the cursor line content into clipboard without leading or trailing blanks. Assign a keyboard shortcut to this macro and you can move a line of text without using the mouse.

  • Copy_Line.bsh - Copies the cursor line content into clipboard without leading or trailing blanks. A keyboard shortcut for this macro will let you copy a line of text without your hands leaving the keyboard.

  • Set_jCompiler_Classpath.bsh - Provides a dialog for quick editing of the classpath used by the JCompiler plugin.

  • Run_Omnimark_Script.bsh - Executes an Omnimark script using the Console plugin.

  • loadJarClasses.bsh - This macro defines a method that loads classes dynamically from a designated archive file. It is suitable for use as part of a startup script.

  • Compare_Buffer_to_Disk.bsh - This macro compares a current "dirty" buffer to the original file on disk using the JDiff plugin. It requires JDK 1.3 or later, as well as write permission in the directory where the current buffer's file is located. It creates a temporary file for the comparison and deletes it when the corresponding buffer is closed.

  • BeanShell_Scratch_Pad.bsh - This macro provides a multi-line text area for entering and testing BeanShell scripts

  • Ftp_Buffer.bsh - This macro sends the current buffer to a specified location using FTP. It requires the Savarese NetComponents library, available from http://www.savarese.org/oro/, but can be adapted to use any FTP client class by modifying its ftpFile() method.

Thanks to Lionel Fiol, Simone Milani Foglia, Francesc Ross and Richard Wan for sending in scripts from their personal collection.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
thanks!
by horussandy on Tue, 22/08/2006 - 04:50
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293