jEdit Community - Resources for users of the jEdit Text Editor
rp5.bsh v1.0 by monkstone
Submitted by monkstone on Sunday, 15 December, 2013 - 08:21
Macro for setting GEM_HOME and GEM_PATH environmental variables and calling rp5 commando menu
PYP5 macro to launch processing.py commando file (PYP5.xml v0.1 by Martin Prout)
Submitted by monkstone on Wednesday, 11 September, 2013 - 12:45
Simple macro to use with processing.py commando file
Macro for searching an identifier within the current SideKick asset (updated) (Search Asset Exact.bsh v0.2 by Shlomy Reinstein)
Submitted by shlomy on 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.
Open Selection with Extension (Open_Selection_with_Extension.bsh v1.0 by Gael Ecorchard)
Submitted by galou on Thursday, 19 March, 2009 - 08:25
Opens the file which base name is the selected text and which extension is identical to the one of the file where the text is selected - creates the file if it does not exist.
Duplicate and Increment (Duplicate_and_Increment.bsh v0.1 by Gael Ecorchard (galou))
Submitted by galou on Wednesday, 12 March, 2008 - 14:43
Duplicate the line at the caret incrementing the numbers Example: variable1 = tmpvar1 ; will become var1 = tmpvar1 ; var2 = tmpvar2 ; A list a characters after which no implementation should occur can be given Suggested shortcut CS+L
Macro to insert comment token and indent (XEnter.bsh) (XEnter.bsh v0.1 by Gael Ecorchard (galou))
Submitted by galou on Thursday, 30 August, 2007 - 12:51
insert new line, then behaves either as normal insert enter and indent, if the line is a normal code line or insert the line comment token and indent the line if the current line is a comment Usage: - use the macro at the end of a comment line Best used with a shortcut like S-Enter
Paste_Around (Paste_Around.bsh v0.2 by Gael Ecorchard (galou))
Submitted by galou on Tuesday, 28 August, 2007 - 12:57
Paste the content of register 'a' before the selection (prefix) and the content of register 'e' after the selection (suffix) Usage: - select the prefix part and paste it into register 'a' (C-r C-c a) - select the suffix part and paste it into register 'e' (C-r C-c e) - select something and use the macro. Works also with empty selection. Does not work yet with multiple selections and rectangular ones (error message) Best used with a shortcut like CS-v
Go to file on current line Rails specific macro. (Go_To_File_On_Current_Line.bsh v0.4 by Panya)
Submitted by Panya on Friday, 27 April, 2007 - 14:28

This is a Ruby on Rails specific macro which ported from TextMate Rails bundle 'Go To File on This Line' command. Just go to line which contain any file name(action name, controller name, javascript file name, stylesheet file name, partial name, layout name) and use the macro will open this file. This macro requires ProjectViewer plugin.

P.S. Open_Partial macro is not needed now.
Macros for working with Partials (Partial_Macros.zip v0.2 by Panya)
Submitted by Panya on Friday, 2 March, 2007 - 22:04
1. Open_Partial.bsh

Opens partial which name is selected (to select independently not necessarily if nothing is selected, selects the word under caret).

Example:

<%= render :partial => 'form' %> # select "form"(without quotes) and use macro will open _form.rhtml

2. Create_Partial_From_Selection.bsh

Creates a partial from the selected text (asks for the partial name without _ and .rhtml) and replaces selected text with a <%= render :partial => 'partial_name' %> erb fragment.

generating/destroying macros for RoR developers (rormacros.rar v0.11 by Panya)
Submitted by Panya on Tuesday, 28 November, 2006 - 18:44
This is a macros for generating / destroying:
  • Models
  • Controllers
  • Integration tests
  • Migrations
  • Scaffolds
This macros requires Console plugin. For the correct working you must be in RoR project directory.
Select Super Abbrev (Select_Super_Abbrevs.bsh v1.0 by Jim Morris)
Submitted by wolfmanjm on Sunday, 26 November, 2006 - 20:24
Type in part of an abbreviation and hit the shortcut (I use Alt-Space), and a list of all the abbreviations in the current mode that match is shown, you can then select the one you want. You can choose another mode and it will show you the matching abbrevs from that mode, and you can select from that list. Only works with the current beta of SuperAbbrevs. Jedit >= 4.2final.
HTML Strong tags (HTML_Strong.bsh v1.0 by grasshopper)
Submitted by grasshopper on Monday, 16 October, 2006 - 10:59
A simple macro to enclose a string in strong tags.
Extract Matches (Extract_Matches.bsh v0.4 by Peter Adolphs)
Submitted by futzilogik on 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. Update: version 0.4. now works with 4.3pre16
html named entities (html_named_entities.bsh v1.5 by Johannes Raggam)
Submitted by thet on 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 ###
Copy_Name_to_Clipboard with a trick for rails partials (Copy_Name_to_Clipboard.bsh v0.1)
Submitted by vovan on 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).
Macro for Centering Text (centerText.tar.gz v0.1 by Simao Mata)
Submitted by Simao on 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.
Model/Controller Switcher for RoR developers (toggle_model_controller.bsh v0.1 by vovan)
Submitted by vovan on Monday, 15 May, 2006 - 10:40
The macros opens a Controller file in the current buffer if you're editing a Model and vice versa.
perltidy.bsh v1.0 by Ygramul
Submitted by Ygramul on Saturday, 17 December, 2005 - 21:05
A quick way to `perltidy` the current buffer, results (and/or errors) being displayed in a new buffer.
Macros for use with Progress 4GL (ProgressMacros.zip v1 by Patrick Tingen)
Submitted by ptingen on Monday, 20 December, 2004 - 07:27
Some macros that can come in handy when working with Progress 4GL:

The macros are:
 - Keywords_to_Lower_Case.bsh   
   This macro converts keywords to lower case.

 - Keywords_to_Upper_Case.bsh   
   This macro converts keywords to upper case (surprise eh?)

 - Make_Get_and_Set_Methods.bsh 
   This macro can make get and set functions for a variable. Place
   the cursor on a line containing 'define variable ' and activate 
   the macro. It will create get and set macros. It also works with 
   multiple define statements. Just select all lines and activate
   the macro. 

    define variable CustomerName as character.
    
    /* Name: getCustomerName
     * Desc: Returns the value of CustomerName.
     */
    function: getCustomerName returns null:
      return CustomerName.
    end function. /* getCustomerName*/ 
    
    
    /* Name: setCustomerName
     * Desc: Sets the value of CustomerName.
     */
    function: setCustomerName returns logical (par1 as null):
      assign CustomerName = par1.
      return true.
    end function. /* setCustomerName*/ 
   
 - ProcedureList.bsh
   This macro activates an advanced search command and gives
   a list of all internal procedures, triggers and functions in 
   your code. It presents them using the hypersearch panel. 

Have fun!
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 jiazhimi on 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.
User login
Browse archives
« March 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
31
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   82338
Context Free Art (*.cfdg)   0.31   46043
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16057
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281