jEdit Community - Resources for users of the jEdit Text Editor
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: 1135

User login
Browse archives
« April 2025  
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   107462
Context Free Art (*.cfdg)   0.31   46065
BBEdit scheme   1.0   18604
JBuilder scheme   .001   18505
ColdFusion scheme   1.0   18035
R Edit Mode - extensive version   0.1   17485
Advanced HTML edit mode   1.0   16216
Matlab Edit Mode   1.0   16080
jEdit XP icons   1.0   15239
XP icons for jEdit   1.1   14303