Macros written especially for jEdit. Currently jEdit has built-in support for macro scripts written in BeanShell, an interpreted dialect of Java. BeanShell is easy to learn, especially if you have experience with Java, C++, or other object-oriented languages. Using BeanShell macros can help automate routine tasks and can extend jEdit's features with a minimum of coding.
With the JythonInterpreter plugin, jEdit can also process scripts written in Python. These macros can also be used to make jEdit more productive for you.
BeanShell Macros (151)
Jython Macros (1)
Macro Bundles (9)
Macros contained in zip, gzip, or anything besides plain text format. Macros uploaded in this format will not be available through the Macro Manager plugin.
A macro to remove or retain all lines that can find match with supplied regular expression (Retain_Or_Remove_Lines.bsh v1.0 by Jia Zhiming)
Submitted by Tuesday, 26 October, 2004 - 03:03
Just supply a regular expression, then choose whether to retain or remove the lines that can find match with the regular expression. It will remove all lines that can not find match, or all lines can find a match.
Hope you find it useful.
Updated on 10/26/2004 - 10:15
Copy_Name_to_Clipboard with a trick for rails partials (Copy_Name_to_Clipboard.bsh v0.1)
Submitted by Friday, 16 June, 2006 - 15:04
That's a "patch" for Ollie Rutherfurd's macros. In general it behaves the same, as original. But if you're trying to get to clipboard a rails partial file (like _partial.rhtml) the first _ symbol and the .rhtml ending will be snipped (so you get only "partial" in clipboard).
Updated on 06/16/2006 - 15:04
Duplicate and Increment (Duplicate_and_Increment.bsh v0.1 by Gael Ecorchard (galou))
Submitted by Wednesday, 12 March, 2008 - 14:43
Duplicate the line at the caret incrementing the numbers
variable1 = tmpvar1 ;
var1 = tmpvar1 ;
var2 = tmpvar2 ;
A list a characters after which no implementation should occur can be given
Suggested shortcut CS+L
Updated on 03/12/2008 - 14:43
Extract Matches (Extract_Matches.bsh v0.4 by Peter Adolphs)
Submitted by Thursday, 27 July, 2006 - 14:53
A jEdit BeanShell macro that extracts all tokens matched by a user-specified regular expression and puts them into a new buffer. Optionally returns a unique and/or sorted list of matches.
version 0.4. now works with 4.3pre16
Updated on 03/01/2009 - 14:14
generating/destroying macros for RoR developers (rormacros.rar v0.11 by Panya)
Submitted by Tuesday, 28 November, 2006 - 18:44
This is a macros for generating / destroying:
- Integration tests
This macros requires Console
For the correct working you must be in RoR project directory.
Updated on 04/18/2007 - 16:30
Go to file on current line Rails specific macro. (Go_To_File_On_Current_Line.bsh v0.4 by Panya)
Submitted by Friday, 27 April, 2007 - 14:28
P.S. Open_Partial macro is not needed now.
Updated on 07/26/2007 - 17:05
html named entities (html_named_entities.bsh v1.5 by Johannes Raggam)
Submitted by Thursday, 29 June, 2006 - 16:35
converts special characters to html entities.
based on recorded macro (search/replace) and entity list from http://de.selfhtml.org/html/referenz/zeichen.htm
keeps the search settings as is.
the JTidy plugin has also this function, but maybe this beanshell macro is still useful for someone.
## NEW VERSION ##
including ISO-8851-2 charset
may also be faster
the CHARSET of the macro is UTF-8,
set your file temporary (or permanent) to UTF-8, otherwise the search will nothing find to replace.
edit the macro to fit your needs - for sure there are many characters from many charsets left.
### PLEASE NOTE ###
the file is in UTF-8 encoding. your file where you want to replace characters also has to be in utf-8, otherwise there will be no effect! so: CONVERT YOUR FILE IN UTF-8 BEFORE running the macro and convert it back afterwards.
if someone knows a beanshell commands to read and set the charset-encoding of an file, let me know - so this task could be automated. --> raggam at adm dot at
### / PLEASE NOTE ###
Updated on 02/26/2007 - 20:39
HTML Strong tags (HTML_Strong.bsh v1.0 by grasshopper)
Submitted by Monday, 16 October, 2006 - 10:59
A simple macro to enclose a string in strong tags.
Updated on 10/16/2006 - 10:59
Macro for Centering Text (centerText.tar.gz v0.1 by Simao Mata)
Submitted by Wednesday, 14 June, 2006 - 11:48
I recently switched from emacs to jEdit, (I just love it, and don't miss lisp a single bit :P) and one of the features I missed is centering lines of text.
Just select the lines of text to center and run this macro.
The tar.gz file contains the macro and my gpg signature of the macro, you can get my public key by searching any sks keyserver for simao dot bliter dot com.
Updated on 06/14/2006 - 18:48
Macro for searching an identifier within the current SideKick asset (updated) (Search Asset Exact.bsh v0.2 by Shlomy Reinstein)
Submitted by Monday, 11 April, 2011 - 12:39
This macro searches for a selected string (or the identifier under the caret) within the scope of the current SideKick asset. This macro can be useful for locating all occurrences of a variable inside a function - if the function is a SideKick asset. When using CtagsSideKick with C/C++/Java code, for example, putting the caret on a local variable (in a function) and invoking this macro will search the variable (whole word) inside the current function.
This is a small update from the previous macro that I submitted, which also takes care of selecting the result that belongs to the current caret line in the hypersearch results.
Updated on 04/11/2011 - 14:15
There are 479 downloads in our database