jEdit Community - Resources for users of the jEdit Text Editor
Wanted: macro to set buffer to explict folding
Submitted by jhaefner on Wednesday, 31 January, 2007 - 15:47
Hi, I'm new to jedit macros; I usually rely on "record macro" to get me started, but this time it doesn't work. I'd like a macro that I can shortcut to that sets a specific (or all) open buffers to explicit folding mode (w/o all the mouse clicks). A search of community macros did not reveal anything of recognizable help. Can anyone point me in the right direction to get started? Thanks.
-jim
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Try this one out.
by elberry on Wed, 31/01/2007 - 18:30
I put this on the macros page today.

Give it a try.

http://community.jedit.org/?q=node/view/3425



Learn from the past. Live in the present. Plan for the future.
 
macro does not permanently change fold mode
by jhaefner on Thu, 01/02/2007 - 18:22
Hi,
Alas, the fact that the status bar does not show the folding mode is 
important.  Saving a buffer whose fold method has been reset by the 
macro resets it to value before the macro.  So, still looking for the 
magic jedit incantations...


 
Folding Macro
by jhaefner on Wed, 31/01/2007 - 21:50
Many thanks! It does what I need and can be tweaked. In 4.3pre4 the macro also does not update the status bar nor the "explicit" text field in the Utilities->Buffer Options->Folding Mode.
User login
Browse archives
« September 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   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299