jEdit Community - Resources for users of the jEdit Text Editor
Archives
Select RegExp HyperSearch Matches (Select_HyperSearch_Matches_RegExp.bsh v1.0 by Jakub Holy)
Submitted by malyvelky on Thursday, 7 October, 2004 - 07:41
A Beanshell macro script for the jEdit text editor - selects all matches for the last HyperSearch in the current EditPane. Contrary to the original macro that selects the whole line containing (the start of) a match, this one sets the selection exactly from the beginning of the match to its end thus possibly spanning across multiple lines. Thanks to this it's well suitable for regular expression search.
JEdit42final: Scrolling seems to hang
Submitted by Hans_Bauer on Thursday, 7 October, 2004 - 11:11
Few days ago i installed a new pc with WinXP, Java 1.5.0 and JEdit42final. Scrolling is nearly impossible even for small text files (< 200 lines). JEdit seems to hang for several seconds before stumpling some lines.

Does anyone have the same problem and knows a solution or could give some tips?
Thank you all.
Is there any way to count the number of times a character occurs in a selection?
Submitted by Anonymous on Thursday, 7 October, 2004 - 15:05
Title sums up my quesiton. I try Search and Replace and when I enter the character in the Search field and click find it ALWAYS says there is only one occurrence when I can plainly see several.

I also do not see anything in the text tools plugin or other standard JEdit functionality.

Seems like a pretty simple task. Am I missing something here?
PHP getter/setter macro
Submitted by stavros on Thursday, 7 October, 2004 - 16:53
Hey Folks. Over the weekend I started working on a new project and was laying the infrastructure/groundwork out for everything .. doing up the class libs and what not .. I used DB_DataObject a lot in the past to generate my db class object code, but I decided to use my own rolled DbObject class and found myself writting millions of getters/setters for my class files.
Anyway, I got bored of that and found a macro someone wrote (and is posted somewhere on the site) which generates getters/setters for a c or java file and figured, what the heck, let's tweak that for php.

So I did ... and have it working for me somehow ok .. you just highlite the vars, run the macro and it whips them out, you can even select to use javadoc style comments or not.
The original author did a great job, kudos to him/her, wherever they are ... if anyone is interested in using this hacked-for-php version, I can post it somewhere here .. there are a few idiosincrosies I guess that make it work the way I work, but it's a start at least. For instance, for some reason I my db variables/columns use_this_approach to var naming ... when I code, I use studlyCaps, so my class files look like this.

class Something {
    protected $first_var; // <-- this is how it's named in the db

    // and the getter/setter for that looks like
    // {{{ Getters

    /**
     * javadoc
     */
    public function getFirstVar($first_var) {
          $this->first_var = $first_var;
    }

    // }}} End Getters

    // {{{ Setters
    
    /**
     * javadoc
     */
    public function getFirstVar() {
          return $this->first_var;
    } 

    // }}} End setters

} // class



hah ... interesting, eh? Don't know why I do that, but anyway ... that's how "my" .bsh macro does the getters/setters, but you can hack it pretty easily to work like you do (in a php4 style too, if necessary)... there's more work to be done to make the macro more helpful/slick but if anyone might find it helpful for now, I'll throw her up somewhere ...
-steve
Executing java programs from jedit?
Submitted by Anonymous on Thursday, 7 October, 2004 - 21:29
hi. Just started Jedit. I have used textpad earlier and in it i could launch my program directly from textpad. When i used the "run program" button in textpad a command prompt opened with the output of the program. How can i do that in textpad? Is it possible? I have seen the run button in the console but nothing happens.

Hope someone can answer me
LaTeX math symbols for XInsert (LaTeX_math_symbols.insert.xml v0.1 by rikal)
Submitted by rikal on Friday, 8 October, 2004 - 12:52
This is a list of LaTeX math symbols for the XInsert plugin. You need to specify a Unicode font for the GUI (it should work with the standard Dialog font provided with Java, Lucida Sans). If you use Java 1.5, you can enable autoaliasing by using the -Dswing.aatext=true option in your jEdit startup script. For the present it only covers standard LaTeX math symbols, but AMS symbols, IPA characters and dingbats will come soon.
I/O Error updating plugin mirrors.
Submitted by Anonymous on Friday, 8 October, 2004 - 19:55
Hello,

I've just installed jEdit 4.2final on Win2K sp4 with J2SE 5.0. I'm trying to update the list of mirrors, but I keep getting the message "An I/O error occurred (java.net.ConnectException: ConnectionRefused: connect)". Any help would be greatly appreciated.
Help With Configuring Editing Interface
Submitted by berzerk on Saturday, 9 October, 2004 - 00:51
I have looked all over for this and cannot find what I'm looking for or really what to ask for. In the screenshots section, Robert Fletcher's image, the editor does not have the "." at the end of every line and appears to have the ">>" at each tab indent. I would like to know how to configure these changes. Thanks.
Customizing HyperSearch window behaviour
Submitted by seani on Monday, 11 October, 2004 - 22:21
I use a simple macro (bound to ALT-F) that calls up the HyperSearch window with a regex of ^function, the idea being to get a list of functions in a JavaScript file and skip to the required one.

This works fine, except I'd like the window to close as soon as I select the appropriate entry with ENTER.

Is there a way to achieve this?
[FAQ Candidate]: Can I modify the classpath of a macro?
Submitted by Anonymous on Tuesday, 12 October, 2004 - 10:53
Hi all,

Can I modify the classpath of a macro?
It seems that my question have to be inserted in jEdit FAQ.

------------- References from previous discussions Smiling

[1] Using external java libraries in macros 1 05/01/2004 - 6:38am
by AndreJRenard 05/03/2004 - 8:30am
by Brad Mace

[2] How do I modify the classpath of a macro? 0 04/09/2004 - 4:09am
by Anonymous

-------------

The only solution suggested in previous discussions by Brad
was to put my jars into jEdit folder.
That's good, but not too handy. BeanShell's addClassPath() command was
much better.

Currently I have my classes compiled in Eclipse workbench and can play
with them from BeanShell script as much as I like. I run my BeanShell scripts
from command-line currently and I hoped that jEdit's BeanShell Console can be
a better tool.

Changing class in Eclipse is enough for script. But if I had to create jar,
put it into jEdit folder and restart jEdit to catch the changes, it makes it
useless.

My suggestion is to reflect this behaviour in jEdit FAQ.

Best regards,
Egor Abramovich
egor_abramovich@mail.ru
third button paste under linux
Submitted by Anonymous on Tuesday, 12 October, 2004 - 16:09
I'm really disappointed, I'm just discovering this fantastic tool and the third button paste wont do anything !

(I mean by that when you select some text in a console for example and click the third button anywhere else: it pastes usually the selection.) Everywhere but not on jedit.

thanks
jobano@linux-fan.com
Whitespace plugin doesnt work in 4.2final
Submitted by pachanga on Wednesday, 13 October, 2004 - 05:58
First of all jEdit is a great stuff and i'm very impressed with it! I sent to trash my ultraedit Smiling

Whitespace plugin doesn't seem to be working properly in 4.2final. It simply doesn't show anything Sad I tried modified unofficial version of this plugin(this topic arose here already) and to no avail...

Can someone help me please?
Jedit 4.2 on Debian
Submitted by JLuca on Wednesday, 13 October, 2004 - 07:59
Hi all,
I am an enthusiastic jedit user, I use since a long time the version 4.1 on a Debian Sid. If I am not wrong I downloaded it as a .deb, and I had several problems with it (I must use the blackdawn jre to run it, apt-getted as well...). With the 4.2 I've big problems: it works just if I launch it as root, and this is not so pleasant... Please, let me know if I can fix it in some way (it's maybe obvious, but I don't have time to look for the solution of the problem...).
Btw, jedit is great, and I would like to go on in using it, instead than to pass at Eclipse...
Give me some advice Smiling
Regards,
L.
jEdit 4.2 closes by itself in Windows XP SP2
Submitted by Anonymous on Wednesday, 13 October, 2004 - 16:52
It installed just fine, and launches correctly. But as soon as I close the "Welcome" help page, the whole application closes. Java environment is Sun's j2re1.4.2_05.
How to set Commando to use jdk 1.5?
Submitted by shingler on Wednesday, 13 October, 2004 - 21:40
Hi all
How can i set the Console/Commando to use jdk 1.5?
For instance to compile a java file with the javac routine?
Many thanks
S
JPyDebug Problems
Submitted by Anonymous on Thursday, 14 October, 2004 - 03:55
I've installed the JPyDebug plugin, but can not get it to work. I have set the Python interreter to be my version of Python that's installed (2.3), and the jpy daemon script that is in my home directory. I get the fallowing error when I start the debugger.

C:\Python23\python.exe: can't open file 'C:\Documents'

Debug session Abort =2

Also sometime it says localhost instead of 'C:\Documents', and down at the very bottom of the debugger window I get this message.

ERROR :: python jpydebugger launcher ABORTED

Anyone have any ideas why this is not working? I even tried installing the jython plugin, but that did not seem to help either. Do I need jython installed to get the python debugger to work? Also below is some output from the Jedit acitvity log. Any suggestions would be much appreciated.

[notice] jEdit: Loading edit mode C:\Program Files\jEdit\modes\text.xml
[debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: BufferUpdate[what=LOADED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=LOADED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: buffer loaded :Untitled-1 mode = text
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[notice] jEdit: Loading edit mode C:\Program Files\jEdit\modes\python.xml
[debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] jEdit: Loading services from jeditresource:/JPyDebug.jar!/services.xml
[debug] EditPlugin$JAR: Opening C:\Documents and Settings\jason\.jedit\jars\xmlParserAPIs.jar
[debug] EditPlugin$JAR: Opening C:\Documents and Settings\jason\.jedit\jars\xercesImpl.jar
[debug] JPYPythonParser: python: activated for excel2html.py (Z:\dev\python\)
[debug] EditBus: BufferUpdate[what=LOADED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=LOADED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: buffer loaded :excel2html.py mode = python
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] WorkThread: Work request thread starting [SideKick #1]
[debug] WorkThread: Running in work thread: [id=6,run=sidekick.SideKick$ParseRequest@1a4181c]
[debug] JPYPythonParser: entering parser
[notice] Thread-4: C:\Python23\python.exe: can't open file 'C:\Documents'
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] DockableWindowManager: Loading dockables from jeditresource:/ErrorList.jar!/dockables.xml
[debug] PythonJeditPanel: JpyDbg Message Handler entered:ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] ActionSet: Loading actions from jeditresource:/Background.jar!/actions.xml
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.
File-saving permissions under Windows XP
Submitted by Afishionado on Friday, 15 October, 2004 - 21:27
For whatever reason, whenever I try to save a new file with jEdit under Windows XP, I get the error "Insufficient permissions to save file." If I create the file with Notepad, I can overwrite it to my heart's content with jEdit.

Oh, yeah, I'm using jEdit 4.1. I have no problems using it under Linux.

Is this a bug, or is there just something weird about my configuration?

A'fish'ionado
Block copy/paste request
Submitted by Hans_Bauer on Saturday, 16 October, 2004 - 17:40
Dear JEdit team,

working a lot with JEdit using block copy and paste i miss a very useful feature, some other editors offer. So at the moment it's hard for me to change to JEdit completely even though i wish to do this.

With JEdit we need to select a block using the ctrl-key, count the number of the selected lines in the block, select the same number of lines in the target area and insert the block (ctrl-v). This is very hard for large blocks with many lines, expecially because the statusline does not show the number of the selected lines.

It would be very useful to be able to paste the selected block into the target area only by setting the cursor to the upper left corner of the target and pressing ctrl-v.

An example to show my problem:
Assume the block of 'X' should be copied between 'c' and 'd' (should be read with fixed font)

aaaaa bbbbbbbbb
aXXXa cccdddeee
aXXXa f
aXXXa ggghhhiii
aaaaa jjjjjjjjj

The intuitive way is to select the block of 'X', press ctrl-c, move the cursor between 'c' and 'd' and press crtl-v to get

aaaaa bbbbbbbbb
aXXXa cccXXXdddeee
aXXXa f XXX
aXXXa gggXXXhhhiii
aXXXa jjjjjjjjj

At the moment the above procedure leads to

aaaaa bbbbbbbbb
axxxa cccXXX
XXX
XXXdddeee
axxxa f
axxxa ggghhhiii
aaaaa jjjjjjjjj

I hope you agree with my request. Is there a possibility to implement this?

I appreciate your great work coding one of the best editors found in the net.
Thanks you all.

Yours
Hans Bauer
Block copy/paste request
Submitted by Hans_Bauer on Saturday, 16 October, 2004 - 17:41
Dear JEdit team,

working a lot with JEdit using block copy and paste i miss a very useful feature, some other editors offer. So at the moment it's hard for me to change to JEdit completely even though i wish to do this.

With JEdit we need to select a block using the ctrl-key, count the number of the selected lines in the block, select the same number of lines in the target area and insert the block (ctrl-v). This is very hard for large blocks with many lines, expecially because the statusline does not show the number of the selected lines.

It would be very useful to be able to paste the selected block into the target area only by setting the cursor to the upper left corner of the target and pressing ctrl-v.

An example to show my problem:
Assume the block of 'X' should be copied between 'c' and 'd' (should be read with fixed font)

aaaaa bbbbbbbbb
aXXXa cccdddeee
aXXXa f
aXXXa ggghhhiii
aaaaa jjjjjjjjj

The intuitive way is to select the block of 'X', press ctrl-c, move the cursor between 'c' and 'd' and press crtl-v to get

aaaaa bbbbbbbbb
aXXXa cccXXXdddeee
aXXXa f XXX
aXXXa gggXXXhhhiii
aXXXa jjjjjjjjj

At the moment the above procedure leads to

aaaaa bbbbbbbbb
axxxa cccXXX
XXX
XXXdddeee
axxxa f
axxxa ggghhhiii
aaaaa jjjjjjjjj

I hope you agree with my request. Is there a possibility to implement this?

I appreciate your great work coding one of the best editors found in the net.
Thanks you all.

Yours
Hans Bauer
User login
Browse archives
« October 2004 »
MoTuWeThFrSaSu
 
6
10
17
22
26
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   108249
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309