jEdit Community - Resources for users of the jEdit Text Editor
Archives
Clipper plugin: reload clippings
Submitted by nickb on Saturday, 6 August, 2005 - 12:59
How does one reload Clipper's clippings without quitting and restarting jEdit?

Nick
Retaining variables between calls to a macro?
Submitted by stretch6555 on Monday, 8 August, 2005 - 12:18
Hi,

I'm writing a macro which, during its execution, creates a few variables. I'd like
to somehow save or retain these variables (and their contents) when the macro ends, so
that they can be referred to the next time I execute the same macro (or indeed some other
macro). Is this possible?

At first, I thought maybe I could declare the variables as 'static', but this doesn't seem
to work. I suppose another way of saving information between calls, might be to put
the data into some of the JEdit clipboard registers. Can someone suggest a good
solution to this problem?

Also, is there some class or method that my macro can call that will tell it what the
last key the user pressed was? And what about the last macro that was executed?

Any help would be most appreciated.


Thanks.
Retain selection
Submitted by bmiller on Monday, 8 August, 2005 - 13:41
It would be *very* handy if selections were retained after undo. In other words, if one were to select a block of text, cut/delete it, and then hit undo, the text would (obviously) be returned, and the selection of said text would also return, giving you a better idea of exactly what you had undone.
BufferList Enhancement Request: Get shortest directory location.
Submitted by Bradlis7 on Tuesday, 9 August, 2005 - 22:10
I have a request for the BufferList plugin. It's an awesome plugin and I use it all the time. I'd like for it to shorten the directory names to the common directory of all open files, and display that directory at the top or something. For example, my webpages are at "C:\Documents and Settings\Brad\My Documents\My Webpages\wboots" and can be shortened to "~\My Documents..." with the replace occurences of user directory option, but it still seems a bit long. Some of my pages are at "~\My Documents\My Webpages\wboots\includes" and it runs off of the screen. I like for the list to take up the least amount of space, so I never have it where I can see the whole line.
Stupid question about icons
Submitted by sinebubble on Wednesday, 10 August, 2005 - 05:44
I'm trying to change gray/blue/white default jedit icon that appears on XP in the Taskbar and in the upper left corner of the application window. I have created a customicons.jar in .jedit/jars containing jedit-icon.gif, to replace the default, and have the appropriate startup script. Still, I cannot change this icon. Any ideas for resolution?
Difficulties to launch jedit
Submitted by christophGille on Wednesday, 10 August, 2005 - 10:38
I would like to launch jedit from my application using something like
org.gjt.sp.jedit.jEdit.main(new String[]{f.getAbsolutePath()});
What I get is
AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
[error] AWT-EventQueue-0: java.lang.NullPointerException
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:2165)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(ChunkCache.java:760)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.updateChunksUpTo(ChunkCache.java:635)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(ChunkCache.java:244)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getScreenLineOfOffset(ChunkCache.java:70)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea._finishCaretUpdate(JEditTextArea.java:5187)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.finishCaretUpdate(JEditTextArea.java:5377)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setSelection(JEditTextArea.java:1629)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.selectNone(JEditTextArea.java:1600)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setBuffer(JEditTextArea.java:318)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:105)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.setBuffer(View.java:995)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$5.run(jEdit.java:3454)
[error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

A jedit frame is opened but does not work properly

My current work around is to start java via Runtime.exec. It which works but
is a wast of resources because a new virtuel java machine is created.

Can somebody please help me solving this problem,
Many thanks

Christoph
New Line Ignorer
Submitted by sdexp on Friday, 12 August, 2005 - 03:28
jEdit is great with handling the newline (/n, /r, or /n/r) arguments. However, it needs to be able to ignore them to with find and replace given an option is checked. This option should be located under the HyperSearch checkmark.

I love jEdit. Thanks.
Select lines matching regex (Select_Lines_Matching_regex.bsh v1.0 by De Franciscis Dimitri)
Submitted by megadix on Friday, 12 August, 2005 - 09:45
Selects lines matching a regular expression
  • remembers previous values
  • suggested shortcut: CTRL-G (next to CTRL-F "Find")
InfoViewer how to select external browser?
Submitted by tantebootsy on Saturday, 13 August, 2005 - 21:23
Hi,

I want to use Firefox in InfoViewer as external browser but don't know what to put into the "external browser command" line.
Can anyone of you guys give me a hint?

Thx,
Michael
Updating / Installin Plugins with 4.3pre2
Submitted by temp on Monday, 15 August, 2005 - 08:25

When trying to install or update plugins with 4.3pre2 I'm getting a "An I/O error occured (Connection refused: connect)" error. Changing the server in the download options doesn't seem to help.

Activity log shows this:

[debug] WorkThread: Running in work thread: [id=142,run=org.gjt.sp.jedit.pluginmgr.PluginManager$2@19d688]
[error] Roster$Install: java.net.ConnectException: Connection refused: connect
[error] Roster$Install:  at java.net.PlainSocketImpl.socketConnect(Native Method)
[error] Roster$Install:  at java.net.PlainSocketImpl.doConnect(Unknown Source)
[error] Roster$Install:  at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
[error] Roster$Install:  at java.net.PlainSocketImpl.connect(Unknown Source)
[error] Roster$Install:  at java.net.Socket.connect(Unknown Source)
[error] Roster$Install:  at java.net.Socket.connect(Unknown Source)
[error] Roster$Install:  at sun.net.NetworkClient.doConnect(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.openServer(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.openServer(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.New(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.New(Unknown Source)
[error] Roster$Install:  at sun.net.www.http.HttpClient.New(Unknown Source)
[error] Roster$Install:  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
[error] Roster$Install:  at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
[error] Roster$Install:  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
[error] Roster$Install:  at org.gjt.sp.jedit.pluginmgr.Roster$Install.download(Roster.java:417)
[error] Roster$Install:  at org.gjt.sp.jedit.pluginmgr.Roster$Install.runInWorkThread(Roster.java:314)
[error] Roster$Install:  at org.gjt.sp.jedit.pluginmgr.Roster.performOperationsInWorkThread(Roster.java:82)
[error] Roster$Install:  at org.gjt.sp.jedit.pluginmgr.PluginManagerProgress$RosterThread.run(PluginManagerProgress.java:181)

Anything I can do about this? Updating/Installing plugins by hand sucks... Eye-wink

Stephan

Python vs. Jython - Newbie Question
Submitted by Jim Sudduth on Monday, 15 August, 2005 - 22:25
I'm just learning Python/Jython and have installed jEdit 4.3pre2 on the 1.5 JDK. When I try to run a Python script that uses urllib2 the Jython interpreter says "ImportError: no module named urllib2". Does Jython not have this module? Also, is there a way to point jEdit at my local Python install or is there a Python plugin? The Python programminng web site says there is but I haven't found it in several days of searching.

Thanks,
Jim
Russian translation (?)
Submitted by Siver on Tuesday, 16 August, 2005 - 18:17
Hi,

I would like to work under Russian translation of the jEdit help.
Could anybody tell me somethink like starting point or other suggestions?
May be there is already a Russian translation?..

Regards,

Andrey
DotComplete
Submitted by Cicero Ribeiro on Tuesday, 16 August, 2005 - 19:58
hi friends,
Great jEdit----> it´s the best.
But I think that´s really needed a DotCompelte (parser) to ansi C / C++.
Thanks.
Jalopy plug-in - version conflict
Submitted by TES on Wednesday, 17 August, 2005 - 09:38
Using the Jalopy plug-in can potentially lead to problems if you are also using Jalopy as a command-line tool, Netbeans, Ant or other plug-in because the file formats in Jalopy's home directory .jalopy where it stores all its settings have changed.

The latest Jalopy version available from http://jalopy.sourceforge.net/ is 1.0b10. Please note, that the Jalopy plug-in listed on jEdit's plug-ins page is an older version (1.0b7) which is not compatible with the config files of 1.0b10.

I had already been using Jalopy's Ant plug-in. Installing the jEdit Jalopy plug-in led to my settings being replaced by Jalopy's default settings; the config files written by jEdit's Jalopy plug-in were unrecognized by my Ant plug-in and builds (from the command line) failed.

On http://jalopy.sourceforge.net/ there is a newer jEdit plug-in (1.0b10), which is compatible with the other plug-ins also available on this site.

Removing the plug-in I had downloaded on the jEdit site and replacing it with the one from the Jalopy site resolved the conflict.
Jedit and something like Intellisense (Jedit newbe)
Submitted by polp on Wednesday, 17 August, 2005 - 14:26
hallo, I am fresh Jedit newbe and I like it a lot! Sorry for stupid question, but I am confused if Jedit can or cannot use something like Intellisense technology for HTML (PHP). To expres myself clear - i mean intellisense in way how in dreamweawer, delphi and so on is used.

thank you
Plugin central updates of 15 Aug - can't see the updates!
Submitted by pallas on Wednesday, 17 August, 2005 - 14:27
Am I the only one not seeing the new batch update?
Plugin manager shows me the usual plugin list, without the new and updated ones. I tried also changing mirror but, as it says, it's downloading the plugin list from plugins.jedit.org so no changes.
Any idea?
Fedora Core 4 - jEdit can't download plugins
Submitted by doronr on Wednesday, 17 August, 2005 - 16:21
I have 2 boxes - one is a fc4 that has been upgraded to each fc reelase since fc1. The other is a brand new fc4 install. One the new box, jEdit cannot download/install plugins (it can fetch server lists though and the list of available plugins): [error] Roster$Install: java.net.ConnectException: Connection refused [error] Roster$Install: at java.net.PlainSocketImpl.socketConnect(Native Method) [error] Roster$Install: at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333) [error] Roster$Install: at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195) [error] Roster$Install: at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182) [error] Roster$Install: at java.net.Socket.connect(Socket.java:507) [error] Roster$Install: at java.net.Socket.connect(Socket.java:457) [error] Roster$Install: at sun.net.NetworkClient.doConnect(NetworkClient.java :157) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient. java:365) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient. java:477) [error] Roster$Install: at sun.net.www.http.HttpClient.(HttpClient.java:214) [error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:28 7)[error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:29 9)[error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getNew HttpClient(HttpURLConnection.java:784) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(HttpURLConnection.java:736) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.connec t(HttpURLConnection.java:661) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:905) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.download (Roster.java:417) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.runInWor kThread(Roster.java:314) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster.performOperation sInWorkThread(Roster.java:82) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.PluginManagerProgress$R osterThread.run(PluginManagerProgress.java:181) This is using Sun's 1.5.0_01 JDK, no firewal and SELinux disabled. It works fine on my upgraded fc4 with the same exact JVM. jEdit was installed using JPackage. Any ideas?
Write Active Plugins to Buffer (Write_Active_Plugins_To_Buffer.bsh v1.0 by Jeroen Budts (TeRanEX))
Submitted by TeRanEX on Wednesday, 17 August, 2005 - 21:12
This macro creates a new buffer an writes a list of currently active plugins to it. The list is formatted in DokuWiki's table syntax. (formatting can easily be changed)
focus click moves caret in text area
Submitted by patb on Thursday, 18 August, 2005 - 18:27
Under OS-X 10.4.2 I find that clicking on the Jedit (4.2final) window in order to give it focus has the side effect of also moving the caret in the text area, contrary to the behavior of most applications. Can someone please comment if this occurs for everyone, i.e. whether it is a feature or a problem?

I'm a new jEdit user; hope I'm posting to the correct place for this question.
Thanks,
patb
User login
Browse archives
« August 2005 »
MoTuWeThFrSaSu
3
7
13
14
24
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   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