jEdit Community - Resources for users of the jEdit Text Editor
Archives
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...
jEdit in github
Submitted by sergi.mansilla on Sunday, 6 December, 2009 - 21:33
Hello,

I believe that switching the jEdit VCS to git/github would attract developers to the project. Several projects have reported great benefits contribution-wise when they moved to github (Erlang, jQuery, HelmaNG and Clojure being some of them). The reason is that the pull/push/branching system is amazingly convenient and lets everybody focus on real code and not maintenance. The interface is easy to use as well.

Is there any possibility that this would happen in the near future? I think it would be amazing for the project, really.

Cheers,

Sergi
Two file browser/favorites features
Submitted by painted on Tuesday, 8 December, 2009 - 18:45
Love jedit. A couple changes to the favorites feature I'd love to see:

1) The ability to edit favorites. I use them to store FTP connections for the FTP plugin, and right now if a password, username, or path changes, I have to delete the whole entry and add it again.

2) Favorites saved on the fly. Right now it seems changes to favorites are only saved when you exit the program. A few times I've entered a new favorite only to have the program or machine crash later in the session and I lose the favorite I'd already entered. IMO these should be saved automatically any time they're changed.

Thanks
Jedit look and feel Themes
Submitted by danilo2 on Tuesday, 8 December, 2009 - 20:32
Hi!
I'm new user of JEdit and I'm slowly discovering all its amazing features.
One of the things, I want to do on the beginning, is I want to adjust the look of this editor - I know it is possible.
Currently I want to achivve effect like this one:
http://4.bp.blogspot.com/_jhhCwGCa5Zg/SnvW0GHuRQI/AAAAAAAAAAs/CE7MmLBA96c/s1600-h/Screenshot-jEdit+-+~-Desktop-haxegui-haxegui-controls-Component.hx+%28modified%29+%5BGroup:+All+Projects%5D.png

Could you please tell me:

1) how can I edit the color schemes - where are the schemes files?
(I found that in "look and feel" plugin there are looks and feels like "skin" or "oyoaha" - but I cannot find instructions how to write themes for them Sad

2) Can I adjust color schemes for other looks like "lipstik"?

3) Please tell me too if I can "add" the jtattoo look into JEdit - because I cannot figure how to do that Sad

Thank you very very much Smiling
comments out of the text
Submitted by jrobinss on Wednesday, 9 December, 2009 - 16:41
Hi all,

I'm fairly new to jEdit. I'm using it to experiment with edition in a general way, because I'm familiar with Java and because it is open-source with lots of plug-ins. I've just developped a basic plug-in and started browsing the existing ones.

I would like to use comments (or annotations) like there are in Word: not in the document, but about the document, displayed in a hover or dockable view. Apart from MS products (Word, XL) I don't really know any other editor that does this. I think maybe some PDF viewers do, or ebooks.

(caution: "comment" and "annotation" are not used here in the Java meaning)

Is there any plug-in that may do this?
Is there any plug-in that looks like going that way?

The only plug-in I found that looked vaguely interesting was TaskList which looks interesting because it shows extracted text in a dockable view. But none that addresses my particular issue.

Any help appreciated!
(otherwise this could become a feature request, but I'm not sure, I'm only experimenting here)
JR
PDF viewer
Submitted by jrobinss on Wednesday, 9 December, 2009 - 16:44
Hi all,

alongside my comments request, I'm also trying to open HTML or PDF files in jEdit, especially PDF.

I found LilyPondTool that opens PDF in a pop-up, but I couldn't just find a simple PDF plug-in... is there one?

For HTML, the aim would be to open and eventually annotate HTML files in wysiwyg GUI (not seeing the HTML code). Would there be any advice for this?

JR
Whole project autocomplete?
Submitted by SrGris on Wednesday, 9 December, 2009 - 21:45
Hi,

Its posible to have autocompletion for a whole project (not only opened buffers) via jedit plugins?

I am coding in PHP.

Thanks
Goal column macros (jedit-goal-column-1.0.zip v1.0 by Andreas Nolda)
Submitted by nolda on Friday, 11 December, 2009 - 16:27

This macro bundle is inspired by Emacs’ set-goal-column function.

Installation instructions:

  1. Unzip the archive in your JEdit settings directory.
  2. Optionally, set shortcuts for Set Goal Column, Go to Goal Column of Next Line, Go to Goal Column of Prev Line, and Go to Goal Column of Current Line.

Usage:

  • Running Set Goal Column sets the goal column to the current column. (The default goal column is column 1.)
  • Running Go to Goal Column of Next Line, Go to Goal Column of Prev Line, or Go to Goal Column of Current Line moves the caret to the goal column of the next, previous, or current line, respectively, regardless of the caret position in the current line.
Look and Feel Plugin 1.4.0 (LookAndFeel.jar v1.4.0 by Dale Anson)
Submitted by daleanson on Sunday, 13 December, 2009 - 22:28
Update to Look and Feel plugin to include the Substance look and feel. This upload only contains the updated Look and Feel plugin jar itself. You'll need to download the Substance look and feel jar from https://substance.dev.java.net/files/documents/3294/135954/substance.jar. To install this update: 1. Download the file and replace your existing LookAndFeel.jar, which should be in $USERHOME/.jedit/jars. If you don't have an existing LookAndFeel.jar, install the Look and Feel plugin from the Plugin Manager first. 2. Copy the substance.jar to the same directory as your LookAndFeel.jar 3. Restart jEdit. This plugin now requires Java 1.6.
Using bitmapped fonts.
Submitted by chuckf on Monday, 14 December, 2009 - 23:05
How can I use a bitmapped font with jedit?
Thanks,
chuckf
Commercial use of jEdit HelpViewer
Submitted by weberjn on Thursday, 17 December, 2009 - 13:31
Hi,

jEdit and it's modules are under GPL.

Would the copyright owners of jEdit HelpViewer dual license it under Apache license, too or would they offer a commercial license?

Thanks,
Juergen
ErrorList 1.8 fixed (ErrorList.jar v1.8 by Shlomy Reinstein)
Submitted by shlomy on Saturday, 19 December, 2009 - 19:51
This version fixes an NPE in version 1.8, from ErrorListPlugin.java:400.
Recording Macros not recording all keys (4.3)
Submitted by yakumo9275 on Wednesday, 23 December, 2009 - 19:38
I upgraded to the new release of 4.3, doing a temporary macro it does not register END/HOME in the macro.

eg:

abcdef

press home, type 111 pres end type 222. screen shows "111abcdef222"

macro shows only

textArea.setSelectedText("111222");

I had to get around this by binding a key to go to end of line/start of line.

I did not test what other keystrokes it was ignoring.
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