jEdit Community - Resources for users of the jEdit Text Editor

Text

Macros that manipulate text


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

Remove Trailing WhiteSpaces (remove-trailing-ws.bsh v1.0 by Robert Schwenn)
Submitted by Robert Schwenn on Friday, 2 May, 2008 - 21:34
This macro removes trailing WhiteSpaces of selected lines (as the action with same name does). In contrast, if no selection is present, all lines are processed.

Updated on 05/02/2008 - 21:41
Downloads: 1354

Remove_blank_lines.bsh v1.0 by Tomek Pęszor
Submitted by takeshin on Friday, 4 July, 2008 - 11:08
This simple macro removes blank lines from the current buffer or selection (lines with spaces or tabs also, not only \n\n). It just uses simple RegEx: ([\t\s]+)?\n+\n?

Updated on 07/04/2008 - 11:19
Downloads: 1512

Remove_Comments.bsh v1.0 by Jakub Roztocil
Submitted by Oswald on Monday, 8 January, 2007 - 15:38
This macros removes all comments from the buffer or from selection(s), if any. Doesn't work with javadoc style comments (nested markup isn't removed).

Updated on 01/08/2007 - 15:38
Downloads: 1164

Select Between Quotes (Select_Between_Quotes.bsh v1.0 by Lee Turner)
Submitted by lturner on Thursday, 11 March, 2004 - 15:19
Beanshell macro to simply select all the text between two quotes (").

Updated on 03/11/2004 - 15:19
Downloads: 1982

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