jEdit Community - Resources for users of the jEdit Text Editor

BeanShell Macros

A BeanShell macro script to search and open a recent file or a file in the current directory. (Open_Recent_or_CurrDir_File.bsh v1.0 by AhLeung Cheng)
Submitted by ahlearn on Thursday, 10 April, 2014 - 21:42
A BeanShell macro script to search and open a recent file or a file in the current directory.
  • Press TAB or A+j (S+TAB or A+k) to select next (prev) file.
  • Press ENTER to open the selected file.
  • Press ESCAPE to close.
This Script is a modification of Recent_Files.bsh, written by Jeroen Budts and Ollie Rutherfurd. Copyright (C) 2001-2004 Ollie Rutherfurd, Modified by AhLeung Cheng

Updated on 01/19/2015 - 04:52
Downloads: 2749

A macro script for displaying and switching between open buffers (in most recently viewed order). (Switch_Recent.bsh v1.0 by AhLeung Cheng)
Submitted by ahlearn on Friday, 11 April, 2014 - 03:03
Switch_Recent.bsh - a BeanShell macro script for displaying and switching between open buffers (in most recently viewed order). This is similar to the functionality provided by Alt+Tab in Windows.
Suggested shortcut: A+TAB

This Script is a modification of Buffer_Switcher.bsh, written by Ollie Rutherfurd.
Copyright (C) 2001-2004 Ollie Rutherfurd,
Modified by AhLeung Cheng

Updated on 12/21/2014 - 07:05
Downloads: 4124

A Macro to set folding mode on all open buffers. (Set_Foldhandler.bsh v0.0 by elberry)
Submitted by elberry on Wednesday, 31 January, 2007 - 17:50
This Macro prompts you for the folding mode you want "explicit, indent, none, java, etc..." It then sets the folding mode on all open buffers.

Updated on 01/31/2007 - 17:53
Downloads: 1172

All tasks in a project (Project_Task_List.bsh v1.0 by Dale Anson)
Submitted by daleanson on Tuesday, 4 November, 2008 - 05:16
I like the TaskList plugin, it shows the "TODO" messages in a file so it's easy to see them. A feature I've always wanted for this plugin is to be able to show a list of all such messages in a ProjectViewer project, so I don't have to do a search. This macro provides that ability. This macro requires both TaskList and ProjectViewer to be installed.

Updated on 11/04/2008 - 05:16
Downloads: 1066

Auto auto completer (Auto auto completer.rar v0.01 by Lei Yang)
Submitted by esceo on Wednesday, 17 January, 2007 - 18:46
Automatically triggers auto complete for sidekick as you type

Updated on 01/17/2007 - 18:46
Downloads: 1373

Automatically run Ant on the default target of the build file for frontmost buffer (Run.bsh v1.0 by Philip Weaver)
Submitted by philmaker on Tuesday, 7 March, 2006 - 09:47
It's kind of cumbersome to have to switch between ProjectViewer and AntFarm during development. So I created this simple macro (3 lines) to allow me to press command-r to run the nearest build file for the frontmost buffer. You'll also need to create a keyboard shortcut yourself.

The script assumes that AntFarm and ProjectViewer are docked in the same pane. Whenever AntFarm runs, its panel becomes visible automatically, so the macro quickly switches it back to ProjectViewer (which I always leave open.)

If you have any questions or would like to enhance this, feel free to contact me at philip at philmaker dot com. All of this is documented in jEdit help:

- Console Plugin Help: 6. Macros and the Console plugin
- AntFarm Plugin Help: 5. The Ant Shell
- jEdit API Reference: org.gjt.sp.jedit.gui.DockableWindowManager

Updated on 03/07/2006 - 09:47
Downloads: 1220

Clear Hypersearch Results Macro (Clear_HyperSearch_Results.bsh v1.0 by Lee Turner)
Submitted by lturner on Friday, 16 July, 2004 - 10:19
Beanshell macro to clear all the hypersearch results from the hypersearch window.

Updated on 07/16/2004 - 10:19
Downloads: 2410

Compare Buffer Backups (Compare_Buffer_Backups.bsh v1.0 by Ollie Rutherfurd, John Gellene, Anthony Keeley)
Submitted by keeleyt83 on Thursday, 6 August, 2009 - 20:33
Allows user to easily compare backup version of the current buffer, using the JDiff plugin. Requirements: JDK >= 1.5, jEdit >= 4.3pre15, jDiff >= 3.0.0.

Updated on 08/06/2009 - 20:33
Downloads: 1292

Explore Directory for ProjectViewer (Explore_Directory.bsh v1.0 by David Koenig)
Submitted by Bargle on Saturday, 5 February, 2011 - 21:41
This macro will bring up the default platform file manager if called on a directory from the ProjectViewer plugin. As noted in the java.awt.Desktop API documentation; On the Solaris Operating System and the Linux platform, this API is dependent on Gnome libraries.

Updated on 02/05/2011 - 21:41
Downloads: 864

Find Next Selected (Find_Next_Selected.bsh v1.01 by Dan Ferreira)
Submitted by DanF on Tuesday, 24 August, 2004 - 18:19
Got this idea from UltraEdit32, where I'd often skip the Find dialog by just selecting text and searching for its next occurrence. I never found another editor that provided this simple functionality, and now jEdit can do it with this macro!

If there's no selection, it looks for the next occurrence of your last search (issues a "find-next" action). It's meant to be an improved "find-next", so you can remap your "find-next" shortcut to this macro if you want to.

New in version 1.01:

- Special behavior when regular expressions enabled: if the current selection matches your regexp search string, then it issues a "find-next" action (so it won't disrupt ongoing regexp searches); otherwise, the selected text becomes the new regexp search string; if the new regexp search string is invalid, a regular search is performed (sounds more complicated than it actually is, the point is that now it handles regular expressions nicely :-) )

Updated on 08/26/2004 - 00:38
Downloads: 2632

There are 480 downloads in our database
User login
Browse archives
« February 2018  
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
Yes, I'd like to have translations
No, that'd be bad (please comment)
Total votes: 1092
file   ver   dls
German Localization light   51081
Context Free Art (*.cfdg)   0.31   41260
JBuilder scheme   .001   17053
BBEdit scheme   1.0   16658
ColdFusion scheme   1.0   16636
R Edit Mode - extensive version   0.1   14919
Advanced HTML edit mode   1.0   14092
Matlab Edit Mode   1.0   14038
jEdit XP icons   1.0   13463
XP icons for jEdit   1.1   12487