jEdit Community - Resources for users of the jEdit Text Editor

Text

Macros that manipulate text


Insert Blank Lines (Insert_Blank_Lines.bsh v1.0 by Lee Turner)
Submitted by lturner on Thursday, 8 January, 2004 - 11:55
Beanshell macro to insert blank lines into a buffer.

Updated on 01/08/2004 - 11:55
Downloads: 1610

Insert simple Date (Insert_simple_Date.bsh v1.0 by Robert Schwenn)
Submitted by Robert Schwenn on Sunday, 1 June, 2008 - 20:37
Inserts current date in simple format "01.06.2008" at caret position.

Updated on 06/01/2008 - 20:46
Downloads: 1363

IntelliWrap (IntelliWrap.bsh v0.3 by Shoban Jayaraj)
Submitted by shoban on Tuesday, 30 March, 2004 - 14:41
Given a selected text, tries to wrap the selected text based on prefix strings. Great when adding multi-line comment text that needs to be prefixed with special characters. I wrote it to emulate EMACS 'fill-paragraph' so that comments can be wrapped so as to not exceed a fixed limit.

Can also be used for non-programatical tasks like prefixing replied mail text with '>' etc.

Version 0.3 takes the selection properly into consideration
Version 0.2 incorporates the GPL header to the macro.

Updated on 04/06/2004 - 09:06
Downloads: 2171

Just justify it ! (Justify.bsh v1.0 by Baldurien)
Submitted by Baldurien on Tuesday, 11 October, 2005 - 15:06
This macro will allow you to justify a list of word like The Bat (an email client) does. Also, when you are in a doc block (javadoc, phpdoc or jsdoc, etc) the macros will automaticly add the '*'. When nothing is selected, the macros will take text from the line where the caret is, until an empty line (only space, or only space with '*', or '*/' for docblock). Else it will take the text between the start line and end line of the selection. Note : you may have to customise (edit) the macro to get better result. A quick example [the comment is normally on one line, but it would broke up html presentation]
/** 
   If the selection is set, then we will use it to determine \
   the selected text. Else we will use the {@link Textarea.ge\
   tCaretLine()} method.
 */
Transformate into :
/** 
 * If  the  selection  is  set,  then  we will use it to determine the
 * selected     text.     Else     we     will    use    the    {@link
 * Textarea.getCaretLine()} method.
 */

Updated on 10/13/2005 - 23:11
Downloads: 1878

LineFilter (LineFilter.bsh v1.3 by Robert Schwenn)
Submitted by Robert Schwenn on Tuesday, 29 January, 2008 - 21:07
The macro filters lines of a buffer due to a provided regular expression.

The filter actions are: remove in current buffer or write to a new buffer.
The filter is applied on: matching or not matching lines
The filter works on: the whole buffer or the selection (if it spans over mor than one line)

Based on the following macros: Retain_Or_Remove_Lines. by Jia Zhiming, Grep_Buffer.bsh and Reverse_Grep_Buffer.bsh by Robert Fletcher

Updated on 06/01/2008 - 20:30
Downloads: 1963

Macro to sort lines like in Ultraedit updated (Sort_Lines.bsh v1.1 by Pascal Dal Farra)
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 17:12
Hi, Here is an update of the sorting macros This macro is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Enjoy Smiling

Updated on 05/31/2008 - 13:07
Downloads: 5405

Move Line Down (Move_Line_Down.bsh v1.0 by Lee Turner)
Submitted by lturner on Thursday, 8 January, 2004 - 11:45
Beanshell macro to move a line down by one line.

Updated on 01/08/2004 - 11:45
Downloads: 1988

Move Line Up (Move_Line_Up.bsh v1.0 by Lee Turner)
Submitted by lturner on Thursday, 8 January, 2004 - 11:47
Beanshell macro to move a line up by one line.

Updated on 01/08/2004 - 11:47
Downloads: 1957

Outline_Sort (outline_sort.bsh vV1.01 by Peter Theobald)
Submitted by turtlecove on Tuesday, 22 March, 2011 - 06:19
outline_sort v1.01 peter@TurtleCoveTech.com

Sorts an outline.
Treats the selection or the buffer as an indented outline and sorts based on the leftmost indented "parents", carrying the subtrees with their respective parents.

Skips lines with jEdit auto-settings :setting=value: at the top or bottom of the file.

I keep all of my info in plain text outlines (Org-Mode style) and this allows me to sort my outlines.
Note: I bind this to 'CS+O s' (the two letter code Control-Shift-O s). I plan on writing more Outline macros in the style of Org-Mode and binding them to (refile: CS+O r, sort: CS+O s, capture: CS+O c, SearchToSparseTree: SC+O f, archive: CS+O a, jump: CS+O j, etc)
Handy Tip: hit 'control-e s' to select a tree before sorting to sort just one outline tree instead of the entire buffer.

Updated on 03/22/2011 - 19:37
Downloads: 1133

Proper Case (proper_case.bsh v1.0 by Jonathan Broome)
Submitted by jpbroome on Thursday, 14 October, 2004 - 14:54
A beanshell macro to convert selected text to Proper Case, in which the first letter of each word in the selection is Capitalized.

Updated on 10/14/2004 - 14:54
Downloads: 1788

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