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, oliver@rutherfurd.net Modified by AhLeung Cheng

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

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. http://web.mit.edu/~jedit/arch/java/versions/4.3pre5/macros/Files/Buffer_Switcher.bsh
Copyright (C) 2001-2004 Ollie Rutherfurd, oliver@rutherfurd.net
Modified by AhLeung Cheng

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

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: 1417

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: 1302

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: 1645

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: 1384

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: 2559

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: 1591

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: 1079

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: 2846

There are 480 downloads in our database
User login
Browse archives
« November 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   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300