jEdit Community - Resources for users of the jEdit Text Editor
Archives
maya editor and 2009
Submitted by tokage on Monday, 2 November, 2009 - 10:33
I fallowed all the steps for getting it to work and it does for maya 2008 but when I try it with 09 it just lags for about 1.2 sec and then nothing. Any one have a idea as to why? I have tried changing the port and it had no effect.
Commando File For Ruby Processing (rp5.xml v0.15 by monkstone)
Submitted by monkstone on Thursday, 5 November, 2009 - 10:48
A commando file that allows you to use the current buffer to run the applet, watch the applet (allows live editing via 'watch'), or export it as either an app (via a combo-box chooser). You can also choose to create a new ruby processing sketch, to edit. However as yet you need to use the file manager to open the newly created sketch in the editor, so its not useful. Live edit via 'watch' updates the sketch on save. Just removed the 'rp5 live' option it never worked from jEdit. Modified to cope with crappy paths with spaces, as like windoes do. Default is now to run with system jruby, to use jruby-complete radio-button select that option. New 'version' option available fom ruby-processing-2.5.0 reports version, processing root and whether jruby-complete has been installed,
Pass selection to external tool
Submitted by oh on Friday, 6 November, 2009 - 10:21
Preamble:

I just switched from Vista to Ubuntu. Have to set up a new tool chain. Discovered jEdit - fantastic. Thanks for all the hard work.

I have used Programmers Notepad or Textpad for many years. There I set up external tools to run on certain key presses. I assume that this is done using the Console plugin. So I downloaded the latest console plugin to go with the latest jEdit.

And now the question:

In Programmers Notepad there was a check box: Pass my selection to the external program using standard input. And: Replace selection with output from external tool. These functions would give me a quick way to filter a few lines of text through an external script. Is there an equivalent to this in jEdit?

Could you please point me in the right direction?
Creating new key words (SQL)
Submitted by rdtindsm on Sunday, 8 November, 2009 - 18:43
Have been using Jedit for an SQL class, particularly because of the "capitalize key words" macro, which is SOP in the SQL community. There seem to be some that aren't included, 'minus' in particular. I'm not an SQL guru, but am told that different implementations can have different keywords, so the ability to modify this list would be very useful, as it was the last time I used an editor with the capability.

The home page suggests that I can add (or create) my own. Looked in users guide, FAQ, et.al, and can't find any references that tell me how to do this. Can I change colors too?
FTP Plugin Timeout value
Submitted by imgod2u on Monday, 9 November, 2009 - 02:38
The sites I'm connecting to remotely have a pretty long authentication time for some reason. This makes it such that re-connecting after a connection has timed out painful. I've looked and there doesn't seem to currently be a way to do this but it'd be nice if you could manually set the timeout value and possibly set it to never.

It'd also be nice for a "keep connection alive" feature for servers that have a timeout built-in.
Javadoc Commenter (Write_Javadoc_Comment.bsh v1.0 by Damien Radtke)
Submitted by kog on Monday, 9 November, 2009 - 16:42
This is a Java macro that writes Javadoc comments for you. It searches upwards from the cursor for a "public", "protected", or "private" keyword, requests input via a series of input boxes, and when you're finished inserts a new Javadoc-formatted comment in the correct position.
Vim-Style Left and Right (vim-movement.zip v1.0 by Damien Radtke)
Submitted by kog on Monday, 9 November, 2009 - 18:41
These two macros are intended to replace jEdit's default "Go To Next Character" and "Go To Previous Character" actions. When used, pressing left or right will never move the cursor up or down. Normally, if left is pressed at the beginning of a line, the cursor moves up a line, and when pressing right at the end of a line, it goes down one. With these macros, in both cases, the cursor stays where it is.
How with jEdit edit String in java program?
Submitted by programania on Wednesday, 11 November, 2009 - 17:22
How with jEdit edit String in java program?

Something of a type:
String s =jEdit.???????????? (" for (i=0; i < 10;) \n {\n i ++; \n} ");
Call "Complete Word" automatically after Nth letter?
Submitted by DVV on Wednesday, 11 November, 2009 - 17:40
I believe such question was asked before, but I could not find the answer, sorry.
How can I make jEdit to call/execute its built-in function "Complete Word" for every word after I type, for example, 3 first characters of the word? You see, typing Ctrl+B for each word is tiresome, why don't jEdit itself "call" this function after Nth first letters of word have been typed?

P.S.
I've tried the TextAutocomplete plugin, but it seems to be not what I need. All I need is the standard functionality of Ctrl+B but without Ctrl+B typed manually.
Amazing editor, by the way!
perl highlight
Submitted by Andrey Zloy on Thursday, 12 November, 2009 - 15:44
jedit incorrect highlight this perl code
sub GetObjectByType {     my $self=shift;     my $type=shift;     my $name=shift;     my $search_href={type=>$type};     if ($name){       $search_href->{name}=$name;     }     my $attr_href={rows=>1,order_by=>\'version DESC'};     if (!($ENV{IS_ADMIN})){       $search_href->{synced}=1;       my $obj_version=$self->obj_version;       if (!($obj_version)){         $obj_version='0';       }       $search_href->{version}={'<=',$obj_version};     }     return [$self->objs->search($search_href,$attr_href)->all]->[0]; }
Thunderbird crashes
Submitted by oh on Thursday, 12 November, 2009 - 17:11
When I copy some text from jEdit and paste it into the body of an email, Thunderbird immediately crashes - vanishes without a trace. I am not saying this is a bug with jEdit, might well be with Thunderbird. But do any of you have a suggestion for fixing this - some kind of encoding settings? (For the moment I just keep gedit open and paste the text there - and do a further Copy/Paste from gedit to dump it into a Thunderbird email.)

I am using jEdit 4.3pre16 with Java 1.6.0_0 on Ubuntu 64 and Thunderbird 3.0pre (Shredder).

Thank you,
OH
Open Source jEdit for Sale
Submitted by jeditralf on Sunday, 15 November, 2009 - 15:43
Look here:
http://mac.softpedia.com/get/Word-Processing/Jedit.shtml
Small problem with FTP plugin when username contains @
Submitted by marchost on Tuesday, 17 November, 2009 - 14:23
Hi all, first if some of jedit developper are reading this, I would like to say that jedit is a wonderful editor, continue your great work...

I just ran into a small issue today with the FTP plugin.

I couldnt connect to a FTP (using plugin->ftp->connect to ftp) when a username had an "@" (user@domain.net) it would create an address of : ftp://user@domain.net@domain.net:21 which obviously dont work.

The workaround is to put the FTP address in the path and after the plugin prompt for user/password...
Buffer stopped showing up in all views
Submitted by proee on Wednesday, 18 November, 2009 - 16:48
For some reason jEdit stopped showing all open buffer in each view. Now buffers are segregated to a single view. When I open a new buffer, I'd like it to be available in my buffer tabs across all views.

Somehow I must have broken this or turned of the default setting.

Any ideas how to get all buffers showing in each view?
Unable to close file
Submitted by kbs on Wednesday, 18 November, 2009 - 18:59
I installed the r.xml mode file and then tested it by opening a file with .R extension. The syntax highlighting worked just fine, so I thought I did the installation correctly, but now I'm unable to close that file, exiting jedit and re-opening doesn't help, the file is still open. I get this error message:
java.lang.NullPointerException: Mode must be non-null
at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2016)
at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2066)
at org.gjt.sp.jedit.Buffer.finishLoading(Buffer.java:3920)
at org.gjt.sp.jedit.Buffer.access$800(Buffer.java:71)
at org.gjt.sp.jedit.Buffer$1.run(Buffer.java:280)
at org.gjt.sp.util.WorkThreadPool.addWorkRequest(WorkThreadPool.java:110)
at org.gjt.sp.jedit.io.VFSManager.runInAWTThread(VFSManager.java:261)
at org.gjt.sp.jedit.Buffer.load(Buffer.java:317)
at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1473)
at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1617)
at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1572)
at org.gjt.sp.jedit.jEdit._closeBuffer(jEdit.java:1717)
at org.gjt.sp.jedit.jEdit.closeBuffer(jEdit.java:1664)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeOnMethod(Reflect.java:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:349)
at bsh.BshMethod.invoke(BshMethod.java:246)
at bsh.BshMethod.invoke(BshMethod.java:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Getting standalone textarea to work with syntax highlighting, code completion, etc.
Submitted by mikeklein on Sunday, 22 November, 2009 - 21:22
I have run build.xml to generate standalone-textarea and despite tweaks (BufferUndoListener?) needed in build got past this.

I can successfully show a textarea with my content inside however there is no java syntax highlighting, backspace/del/arrow keys don't work, etc. All text is black and white.

I am instantiating the textarea with supplied 'jedit.props' file and changed default mode from text to java in 'jedit.props'. I have confirmed that modes directory (with text.xml/java.xml) is a part of my textarea jar produced by build as is the modified jedit.props file.

Any ideas how I can actually use this standalone widget as intended? I need syntax highlighting and code completion. I was hoping to pass in classpath urls as needed for code completion part.

I am seeing nothing in APIs (at least from textarea) which would allow me to do any of the above.

Help w/be nice right about now...

thanks in advance,

mike
Complete Word automatically after Nth letter
Submitted by DVV on Thursday, 26 November, 2009 - 14:40
Please add an option for jEdit to call/execute its built-in function "Complete Word" for every word after N first characters of this word have been typed.
You see, typing Ctrl+B for each word is tiresome, why don't jEdit itself (automatically) show the list of possible words after Nth first letters of a word have been typed?
Regex for jEdit
Submitted by Whoshooter on Sunday, 29 November, 2009 - 18:40
Hi there - this is my first post here on the forum. I used to use UE but have switched to jEDIT. I have a regex for EU that adds the word BREAK every three sentences (or periods really), that worked like this.

BEFORE
The cow juumped over the silvery moon. Jack and Jill went up the hill to fetch a pail of water. Humpty Dumpty sat on a wall. It was the best the times it was the worst of times.

AFTER REGX
The cow juumped over the silvery moon. Jack and Jill went up the hill to fetch a pail of water. Humpty Dumpty sat on a wall. BREAK It was the best the times it was the worst of times.

This was the REGEX I used in EU for this move;

Find What: ^([~.]+.[~.]+.[~.]+.^)

Replace With: ^1 BREAK

Does any smart person know what the jEDIT version of this would be??? I'm fighting it with no signs of success in the near future.
How to use automatic configuration script with jedit
Submitted by vivekbhat on Wednesday, 2 December, 2009 - 08:21
Hi,

I use jEdit in office where we connect to the internet using proxy. This proxy is set by an automatic proxy configuration url (PAC).

Now I am not sure how run this configuration in jEdit. I know there is "Proxy Servers" settings tab in "Global Options". But there is no place where I can put the automatic proxy configuration url. The downside of this is that I can install or upgrade jEdit or jEdit Plugins here.

Any help will be greatly appreciated... Smiling
jedit and git
Submitted by vivekbhat on Thursday, 3 December, 2009 - 10:09
Hi,

Is there a way I can use git with jedit. Like while creating projects, in the Verison Control there is a choice of subversion... I wanted to use git instead of that. Can I do that...
User login
Browse archives
« November 2009 »
MoTuWeThFrSaSu
 
3
4
7
10
13
14
16
19
20
21
23
24
25
26
27
28
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   99587
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   17480
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