jEdit Community - Resources for users of the jEdit Text Editor

BeanShell Macros


Open_Copied_Path.bsh v1.0 by AhLeung Cheng
Submitted by ahlearn on Saturday, 24 January, 2015 - 19:47
Open the file with its path copied to the clipboard

Updated on 01/24/2015 - 19:47
Downloads: 8505

PHP Getters / Setters (PHP_Get_and_Set_Methods.bsh v1.0 by Thomas Van Steenwinkel)
Submitted by jvgamers on Monday, 21 May, 2012 - 14:01
This macro allow you to generate Getters / Setters and Constructor for PHP File. It is based on official Get and Set Methods for Java, improved for PHP use.

Updated on 05/21/2012 - 14:01
Downloads: 1773

Rails - Extract Partial (Extract_Partial.bsh v0.1 by Alexandre da Silva)
Submitted by simpsomboy on Monday, 15 September, 2008 - 13:26
Extract selected region from current buffer as a partial, ask for a name and create a new buffer with _(given_name).(current_extension), then insert a <%= render :partial => 'given_name' %> My shortcut: CS + p Example: you are working in a file index.html.erb, select some region and activate extract partial macro. it will ask you for a name to partial, you inform "list_item", then, a new buffer will be created with name "_list_item.html.erb" with the content of selection, than the selection will be replaced by the command "<%= render :partial => 'list_item' %>". enjoy.

Updated on 09/15/2008 - 13:26
Downloads: 1107

Ruby auto indent and insert end v0.6 (Ruby_auto_indent_and_insert_end.bsh v0.6 by Robert McKinnon)
Submitted by robmckinnon on Sunday, 22 August, 2004 - 16:12

Designed to be executed each time the enter key is pressed. Auto indents and inserts 'end' after the following: if, for, while, until, unless, def, case, class, module, begin, loop do, x do |y|. Also aligns else and elsif. Designed to work with the auto-indenting defined in Ruby edit mode v0.3.

Use in combination with the Ruby edit mode v0.3 to solve most of your Ruby indenting needs!

TO INSTALL:

  1. Place in directory: [user_home_dir]/.jedit/macros/Ruby
  2. Add the 'ENTER' key shortcut to this macro via:
    • Utilities -> Global Options -> Shortcuts -> Edit Shortcuts: Macros
  3. Install Ruby edit mode v0.3.

Updated on 09/26/2004 - 22:03
Downloads: 2089

Screenshot.bsh v1.0 by Delvin Johnson
Submitted by delvinj on Thursday, 8 September, 2005 - 18:15
Take a screenshot of your desktop and save it as a PNG file.

Updated on 09/09/2005 - 08:41
Downloads: 3610

Search Ruby documentation v0.2 (Search_Ruby_documentation.bsh v0.2 by Rob McKinnon)
Submitted by robmckinnon on Wednesday, 25 February, 2004 - 06:42

Allows user to search Ruby documentation using ri (Ruby interactive reference). I map this to: ctrl+r ctrl+i

  • Brings up dialog for user to enter search term.
  • Macro runs ri on term, and reports ri results in another dialog.
  • Remembers last term searched, and places it in search entry field.
  • If user has selected text, then that is placed in search entry field instead.

New in 0.2: lengthly results placed in scroll pane; handle error that occurs when results overflow native system's std out buffer.

See other ideas for Ruby editing macros.

Updated on 04/11/2004 - 04:22
Downloads: 1983

Select and iterate through string literals (selectStr.bsh v0.1 by Mehmet Soyturk "myavuzselim")
Submitted by myavuzselim on Friday, 14 April, 2006 - 08:04
  • Calling this macro once selects text between the doublequotes around the caret, doublequotes exclusive.
  • A second call selects also the doublequotes.
  • By calling the macro multiple times, you iterate through the string literals in your file from left to right.
  • It takes java/c++ escape sequences into consideration.

Updated on 04/14/2006 - 08:05
Downloads: 1350

Select contents in between parentheses (excluding parentheses) (Select_Contents_in_Parentheses.bsh v1.0 by AhLeung Cheng)
Submitted by ahlearn on Sunday, 21 December, 2014 - 08:51

Updated on 12/21/2014 - 08:51
Downloads: 3546

Select line (Select_Line.bsh v1.0 by AhLeung Cheng)
Submitted by ahlearn on Saturday, 24 January, 2015 - 22:10
Select line - Repeat to select next lines. Suggested shortcut: C+l

Updated on 01/24/2015 - 22:11
Downloads: 3451

Select lines matching regex (Select_Lines_Matching_regex.bsh v1.0 by De Franciscis Dimitri)
Submitted by megadix on Friday, 12 August, 2005 - 09:45
Selects lines matching a regular expression
  • remembers previous values
  • suggested shortcut: CTRL-G (next to CTRL-F "Find")

Updated on 08/12/2005 - 21:14
Downloads: 1725

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