jEdit Community - Resources for users of the jEdit Text Editor
Archives
OpenIt Plugin Work-Around: Eliminate Indexing Upon First Run
Submitted by hurricanedavid on Wednesday, 4 June, 2008 - 20:59
I used to use the OpenIt plugin all the time. However, at some point, it started to do it's indexing not when jEdit started, but when the OpenIt command was first invoked. This made opening that first file take a few minutes if you had lots to index. So I quit using it.

However, my friend Newton found the solution.

To make it index automatically upon startup -- so that the first time you run it you don't have to wait -- put a BSH file in your jEdit startup directory with the following line in it...

org.etheridge.openit.SourcePathManager.getInstance();

(I named mine "openItStart.bsh")

Link to the Plugin info...
http://plugins.jedit.org/plugins/?OpenIt

This plug-in is at version 1.5 now. And it is currently working on my machine in jEdit v 4.3pre9.
jEdit freezes when running python with raw_input() in Console Plugin
Submitted by Cheo on Wednesday, 4 June, 2008 - 22:48
Hi

I found this issue annoying, as I cannot run any python script in the Console plugin if there is a raw_input() or input() within the code.
I'm using Debian. jEdit simply freezes, with the running icon spinning in the Console plugin, but being unable to do anything at all.

As long as there is no raw_input() or input() in the code, the python command run fine in the Console plugin.

Any idea?
FTP Plugin: usernames containing '@' symbol?
Submitted by painted on Thursday, 5 June, 2008 - 18:21
Hello,

I love jEdit and especially the FTP plugin, it makes my work much easier.

My question is, I have several FTP accounts with the username having a format like:

paul@whatever.com

But when I enter it in the Open from FTP Site dialog, it parses it into something like:

paul@whatever.com@webhost.com

and it fails. Can anyone suggest a way to make this work?

Thanks
ProjectViewer: import file names from a file
Submitted by kalabp on Thursday, 5 June, 2008 - 20:28
I would like to request a feature in the ProjectViewer plugin which would allow me to specify a file containing the list of files or directories in my project (one entry per line). This would be useful in situations where a project spans many directories.
WebDAV Plugin?
Submitted by dmac on Thursday, 5 June, 2008 - 23:08
When I first started using jEdit, there was a WebDAV plugin available...but I don't see much about it any more. I don't know much about its history. Is it in need of a developer to maintain it? If so, I might be interested. It would really be useful for me.

Thanks,
Dylan
Switching beween Diff and Unsplit in JDiff
Submitted by ntbenari on Friday, 6 June, 2008 - 10:29
Hi
JDiff is cool but I can't see the full width of the buffers in the Dual Diff display. The toolbar has Unsplit and Diff buttons that do what I want, except that Diff returns the display to showing the same buffer in both panes, instead of the two buffers that I am comparing using Dual Diff. Is it just me or is this a bug?!
Moti
File manipulation - what's wrong with this macro?
Submitted by PaulCollingwood on Friday, 6 June, 2008 - 11:41
Hi, I'm trying to collate the names of all the files within a specific directory path with a specific extension. My bsh macro file contains the following: --------------------------------------------------------- class OnlyExt implements FilenameFilter { String ext; public OnlyExt(String ext) { this.ext = "." + ext; } public boolean accept(File dir, String name) { return name.endsWith(ext); } } example() { file_path = "/example/mydir"; File f1 = new File(sys_file_path); FilenameFilter only = new OnlyExt("bak"); // This is the OFFENDING LINE!!! String filtered_files[] = f1.list(only); for (int i=0; i
Collating file names - basic help.
Submitted by PaulCollingwood on Friday, 6 June, 2008 - 11:50
Hi,
Can anyone demonstrate a macro script that collates an array of filenames that match a certain extension within a specified directory path?
I would need a specific example of how to access each array item, and to know how many array items there are.
This does NOT have to recursive.

Thanks in advance,
Paul
jEdit won't search in files named "_*.*" - need a fix!
Submitted by tomcloyd on Friday, 6 June, 2008 - 19:51
I very rarely have problems with jEdit, which I use a lot, even though I'm only an avocational programmer. I'm right now having a problem I've not encountered before, and I'm sure I'm simply running into my own ignorance, but so far haven't found the fix. It's simple:

First, I'm on Kubuntu Linux 7.10, running jEdit 4.3 pre12, with java 1.6.0_03. I'm fairly new to Linux.

I have a fairly large number of text files (*.txt) in which I'm needing to do a search and replace involving a straightforward character string. It seems clear that jEdit simply will NOT open and search any of my files which begin with an underscore, and a lot of them do. This is a disaster, since doing a manual search is out of the question. I've certainly tried unchecking the "skip hidden/backup" option in the search modal window - it has NO effect. What's the problem here and what can I do to fix it, please?

Any help would be much appreciated!
Fedora9 install help
Submitted by 222fbj on Tuesday, 10 June, 2008 - 22:49
I just switched from XP to a Fedora9 desktop and am not sure how to install Jedit. I got the Java version - but not sure where to go from there. The "open jdk runtime environment" is installed (first file = /usr/lib/jvm-exports/java-1.6.0-openjdk-1.6.0.0.x86_64).

Do I need other packages?
What command starts the installer?
- I did see this page - http://www.jedit.org/index.php?page=compatibility - but wanted to ask here before trying commands I don't understand.

thanks
Koders Search (Koders_Search.bsh v3.1 by Thorsten Willert)
Submitted by Thorsten Willert on Wednesday, 11 June, 2008 - 14:59
Searches on www.koders.com (a free on-line search engine for open source software and other web-downloadable code) for a term you can type in into the macros-gui or it searches for the word under the cursor and opens the result in a browser window.

On Windows is this the default one, on any others system the InfoViewer.
Railscasts scheme (Railscasts.jedit-scheme v1.0 by Alexandre da Silva)
Submitted by simpsomboy on Thursday, 12 June, 2008 - 14:16
Imitation of Popular Textmate theme used by Ryan Bates in Railscasts
Screenshot
Enclose pairs (Encloses.zip v0.1 by Alexandre da Silva)
Submitted by simpsomboy on Thursday, 12 June, 2008 - 14:57
Warning! this is a zip file. if you download from Macro Manager Plugin, go to your macro directory, rename the downloaded file (Enclose_pair.bsh) to Enclose_pair.zip and extract it, and delete the Encloe_pair.zip file
Set of simple macros to enclose char pairs such as: [] {} '' "" `` %% <> ()

Features
  • Insert the pair when typing
  • Enclose the selection with pair just by typing it
Each one need to be configured with a shortcut corresponding with pair
unzip file into your $HOME/.jedit/macros directory
SplashScreen conflict when building jEdit
Submitted by a992400 on Sunday, 15 June, 2008 - 19:05
Hello. I'm trying to rebuild jEdit from source, and I'm using the jEdit source code for version 4.2, and Apache Ant version 1.7.0. Ant correctly locates build.xml in the root directory of the jEdit source, and starts the building process. But it fails with two errors, and many warnings. Ignoring the warnings for now, I'm looking at the first error:

[javac] D:\_t\org\gjt\sp\jedit\GUIUtilities.java:1532: reference to SplashScreen is ambiguous, both class org.gjt.sp.jedit.gui.SplashScreen in org.gjt.sp.jedit.gui and class java.awt.SplashScreen in java.awt match
[javac] private static SplashScreen splash;

Apparently Java AWT has a class named SplashScreen (http://java.sun.com/javase/6/docs/api/java/awt/SplashScreen.html), and jEdit is trying to use the same name for its own class. So I'm wondering how jEdit was able to be successfully built for the release? Anyone have any ideas on this?
InfoViewer encoding
Submitted by takeshin on Wednesday, 18 June, 2008 - 09:30
Hello,

I use InfoViewer plugin to preview HTML during coding.
When I declare UTF-8 in meta tag, and UTF-8 in buffer encoding,
Unicode characters (ą, ę, ś, ć, ż, ż…) are rendered incorrect.

When I change meta declaration to iso-8859-2 and buffer encoding to UTF-8,
characters are ok.

Anybody can help me with this issue?

--
takeshin
GlobalPlugin gtags integration
Submitted by kalabp on Wednesday, 18 June, 2008 - 14:48
I have started using the GlobalPlugin to integrate jEdit with GNU Global and am very impressed with its capabilities. What I would like to see in GlobalPlugin would be integration with gtags, so that the cross-reference database could be generated and updated from jEdit, and integration with the ProjectViewer plugin so that the list of files to be cross-referenced could be obtained from the project:
  • Provide a way to run gtags on the entire project from jEdit. gtags should use the GTAGSDBPATH environment variable (if set) as the location of the cross-reference files.
  • Update the cross-reference database when a buffer is saved (use incremental the update feature of gtags and global).
jEdit Launcher bug on administrative privilages
Submitted by takeshin on Thursday, 19 June, 2008 - 09:01
Problem exists on Windows XP/Vista and other NT based.
When I try to open a new file (form system context menu Open with jEdit)
and server instance of jEdit is running, i get following error:

java.lang.NullPointerException: Null Pointer in Method Invocation
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:841)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at org.gjt.sp.jedit.bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:149)
at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:114)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:389)
at org.gjt.sp.jedit.EditServer$1.run(EditServer.java:343)
at java.awt.event.InvocationEvent.dispatch(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)


What’s the trouble?

--
takesgin
Plugin compilation
Submitted by PaulCollingwood on Thursday, 19 June, 2008 - 09:21
Hi
I have the source to the ProjectViewer plugin within which I have made a trivial modification.
Could someone advice me on the tools and command directives I need to use to create a new version of the plugin .jar file?
If the existing jar file is over-written with a the newly build version, is it just a case of restarting jEdit to utilize the modified plugin?

many thanks,
Paul
How to parse HTML/DOM to set ID attributes
Submitted by takeshin on Thursday, 19 June, 2008 - 09:23
I want to write a macro to automatically add id attribute for all specified tags (h2, h3, h4…),
when it is not set yet. (for example #h2-1, #h2-2, #h2-3…).

I wrote a simple javascript bookmarklet to do it,
but I dont’t know how to do it in beanshell macro.
Set IDs bookmarklet

How to write getElementsByTagName(tag) function?
Maybe just regular expression with returning beanshell replacement will work?
Then how to increment those IDs in regexp?

TIA,
takeshin
Import/Export keyboard shortcuts
Submitted by takeshin on Thursday, 19 June, 2008 - 11:23
jEdit is great, but configuration/customization takes a lot of time…

It would be great feature to Import/Export keyboard shortcut list to file.
If a macro is attached to shortcut, macro file should be also exported/imported.

How to write a macro to do that?

--
takeshin
User login
Browse archives
« June 2008 »
MoTuWeThFrSaSu
 
7
8
9
13
14
16
17
19
21
22
24
25
26
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293