jEdit Community - Resources for users of the jEdit Text Editor
Archives
Open a file at the specified line number (Textmate error handling...)
Submitted by dunnil on Sunday, 12 February, 2006 - 00:22
Hi folks,
There is a rails plugin [1] that convert errors to a url that can be opened by textmate.
Here is the main point:
html = "#{line}"
Is there a way for us to do something like this?

Thanks in advance,
- H


[1] code extracted from the plugin
def add_links_to_backtrace(lines)
lines.collect do |line|
expanded = line.gsub '#{RAILS_ROOT}', RAILS_ROOT
if match = expanded.match(/^(.+):(\d+):in/) or match = expanded.match(/^(.+):(\d+)\s*$/)
file = File.expand_path(match[1])
line_number = match[2]
html = "#{line}"
else
line
end
end
end
Formatter doesn't work
Submitted by Robert Schwenn on Sunday, 12 February, 2006 - 21:46
Running a beanshell script I got an error at the following expression, because the method "format" is not found:

java.lang.String.format("%d", 1234)

In a java sourcefile it works fine.
==> What's on with the beanshell?

Robert
TextMate snippets importing
Submitted by delackner on Monday, 13 February, 2006 - 07:36
SuperAbbrevs is a plugin that has functionality similar to Textmate's and Eclipse's to paste a template with placeholders that you can tab through. Textmate supplies a lot of nice defaults.

Textmate is OS X only, so I wrote a command line Cocoa tool to convert binary plists to xml plists, which I then batch run against the snippet files I want.

Then I modified SuperAbbrevs to have an import option, which takes a directory and imports all .xml or .plist files it finds there, converting $0 endings to $end endings.

If anyone would like to polish this into something more end-user usable, I'd be happy to email the code. For my purposes it has already consumed far more time than I wanted.
FTP Plugin - keep-alive support
Submitted by uzo on Tuesday, 14 February, 2006 - 07:14
is there some way to set the plugin to keep the connection alive (sending NOOP)? i couldnt find it. does some later version support this (using 4.2stable)?

thnx
PHP Parser bug
Submitted by uzo on Tuesday, 14 February, 2006 - 09:21
problem with identifying these variable names as variable names. Mistaken for logical operators:

$or
$and

Example:

$or = new Order($id);

Error message: statement expected
command line: option "+line: " on windows
Submitted by mku on Tuesday, 14 February, 2006 - 10:21
Hi everybody here in the forum , is ti true that on windows the no commandline options except filenames are possible ? I whant to open a file with "jedit +line: but without success. In the help i found the following statement: "If you are using jEditLauncher to start jEdit on Windows, only file names can be specified on the command line" Is that really true or is there another possibility to set a marker on the commandline ? Thanks in advance Martin
Edit Modes: Specify Indent Next Line When Last Char is Colon
Submitted by hurricanedavid on Tuesday, 14 February, 2006 - 18:28
I am using jEdit to write AutoHotKey scripts. Subroutines have the following format...

[code]
SubRoutineName:
__Commands
Return
[/code]

("Commands" should have been indented, but it didn't preview that way, so I inserted a couple of underscores to fake it.)
How can I make jEdit indent after I type a subroutine name and then the colon, rather than having to indent myself?
It does it with braces {}, so I figure I can make it do it after a colon, too.

Can anyone help?
Archive/JavaInsight under jEdit 4.3pre3
Submitted by webengr on Wednesday, 15 February, 2006 - 18:47
Greetings,

I am a longtime jEdit fan, and I recently decided to move from 4.2 to 4.3pre3. Today I needed to look at some Java code that I did not have the source files for, and found that it would not work. I used the "Archive" plugin to browse a jar file, and "JavaInsight" to do a jode-decompile. This latter operation errored out. I had prviously updated all of the plugins that needed to be upgraded, but Archive and JavaInsight were not on the list. Details are included below. Thanks!

Phil Shanks

System info:
IBM Thinkpad T41, 1G RAM; Windows 2000SP4; Sun Microsystems Java JDK 1.5.0_06

Stack trace:

Error in method invocation: Static method handleBrowserAction( org.gjt.sp.jedit.View, [Lorg.gjt.sp.jedit.io.VFSFile;, java.lang.String ) not found in class'javainsight.ByteCodeVFS' : at Line: 4 : in file: inline evaluation of: ``__internal_action_vfs_jode(ns) { this.callstack.set(0,ns); javainsight.ByteC . . . '' : javainsight .ByteCodeVFS .handleBrowserAction ( view , files , javainsight .JodeVFS .PROTOCOL )

at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:76)
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:507)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.browser.VFSBrowser$BrowserActionContext.invokeAction(VFSBrowser.java:1677)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
selection through gutter
Submitted by Old Spider on Thursday, 16 February, 2006 - 13:19
It would be very helpful to be able to click on a line number, including dragging, to select a field of text. Currently I'm unable to do that and it takes extra time to drag and select a single line of text.
How determine if a file is locked?
Submitted by a992400 on Saturday, 18 February, 2006 - 22:17
One of my macros saves open buffers, but it pops up an error message anytime it tries to save a file that is in use by another process, and I'd like to avoid that error message, by not trying to say that particular buffer. Is there a way to check a buffer and see if it is being used by another process?
emacs-like keyboard
Submitted by steph on Monday, 20 February, 2006 - 21:33
Hi, I'd like to change globally all the shortcuts so that an emacs user would be instantly at home
I've seen that it is possible to change any shortcut...but it is too tedious to do it this way for every escape sequence
maybe the best way would be to permit a few styles: jedit, emacs, whatever
is it possible to generate a file with all the actual keyboard shortcuts (in a form that can be reread by jedit Smiling...from there it should be easy to generate another "style"
any thoughts?
thanks
XML Plugin: Updated Ant Completion
Submitted by Stillglade on Tuesday, 21 February, 2006 - 16:20
The Ant code completion when editing a build.xml file is currently outdated (based on Ant 1.5). This functionality is driven by the ant-complete.xml file found in the XML Plugin (a sort of DTD for Ant). I created an Ant task that when run will generate an updated ant-complete.xml based on the version of Ant used when running the task (it uses the Introspection Helper to see all available task/types and their attributes/sub-elements). I created a patch for the build.xml of the XML Plugin so that when built, it will also update the ant-complete.xml file as part of the build. This will keep this file from getting out of date in future releases of the XML Plugin (assuming that new versions of Ant are used when building for a release). Also, this is useful for those who wish to build the plugin themselves as it will allow them to use Ant code copletion with their specific types and tasks which may be added to their local Ant installations.

I recently created a bug report which has these changes attached - http://sourceforge.net/tracker/index.php?func=detail&aid=1432414&group_id=588&atid=565475
Manipulating jEdit from external process.
Submitted by PaulCollingwood on Wednesday, 22 February, 2006 - 10:24
I was wondering if anyone knows if it's possible to access a running version of jEdit (and it's plugins) from an external application?

I have very,very little understanding of Java, but instincts tell me that maybe this could be achieved via a JVM instance in control of an application.
Could someone confirm whether this is possible?

The reason I would like to perform such a task is to invoke calls to the ErrorList pligin, via it's addError() call, as is outline here....

http://community.jedit.org/cgi-bin/TWiki/view/Plugins/PluginDebuggingTechniques

I would like to write a WIN32 application that performs such a tesk, and this would ideally be written in either VB or C.

Has anyone got any ideas how I would get started on this?

Many Thanks Smiling
Windows Native Launcher?
Submitted by tony72 on Thursday, 23 February, 2006 - 12:58
Hi, I recently installed jEdit 4.2, and it seems to be a great editor. But I can't seem to associate it with any file types. From googling, it sounds like there used to be a native launcher for this purpose, but it doesn't seem to have been installed with 4.2, and I don't see a standalone download anywhere. Is there a way to do this?
How to use and configure JcrontabPlugin
Submitted by ebart on Friday, 24 February, 2006 - 09:03
Do any body know about information on using JcrontabPlugin? I've installed this plugin, it is seen in Plugin Manager as loaded. There is no JcrontabPlugin item in Plugins menu. jEdit produceses errors caused by this plugin like: [error] JcrontabPlugin: java.io.FileNotFoundException: /home/eb/.jcrontab/jcrontab.properties (No such file or directory) [error] Cron: at java.lang.Class.forName0 (Native method) [error] Cron: at java.lang.Class.forName0 (Class.java 141) [error] Cron: at org.jcontab.data.DataFactory.(DataFactory.java:52) ... and so on I don't know exactly what does it meen.
Saving word wrap settings
Submitted by J2R on Friday, 24 February, 2006 - 19:18
Not sure if this is a bug. Every time I open a document, the word wrap settings have reverted to None. I change the Word Wrap to Soft at 120 columns in Buffer-Options, save the document. When I reopen it, the word wrap has gone and I have to set it again. Any suggestions?
Howto use Includes Parser plugin ?
Submitted by dwg E on Sunday, 26 February, 2006 - 13:30
I've put this line in my main html file:
< ! - - * * C:\Documents and Settings\dwg E\included.html * * - - >

Includes Parser outputs an empty file.

Further info:
- the file I'm trying to get included does exist
- my files use UTF-8 character encoding
- jEdit 4.2 on Windows XP Pro Sp2

Help!

dwg E.
Memory leak, memory growth?
Submitted by ilazarte on Monday, 27 February, 2006 - 07:30
I'm noticing in the heap monitor, even though JEdit starts at only a 4/5 mb value, it slow creeps up even if I'm not doing anything to as far as 12 MB. This may happen over the course of an hour or so. I've been restarting the prog when it gets that far to reclaim usage. Thankfully the restarts are pretty much instantenous Smiling

I'm using jEdit 4.2 final, with several plugins:
CssEditor 0.3
ErrorList 1.4
FTP 0.7.3
Jakarta Commons 0.4.4
Latest Version Check 1.5
LookAndFeel 1.1
QuickNotepad 4.2
SideKick 0.3.4
XML 0.13

Any way to avoid this? Should I be using 4.3 dev instead?
Whats the release plan? and how have I missed this great editor for so long? Smiling
Live-Search or Filter Plugin
Submitted by cyrus on Monday, 27 February, 2006 - 15:00
Hello,
is there a plugin that shows all contents from an open buffer that matches to a search-string?
I want all non-matching content immediately hidden, so that a seach performs like a filter.
It would be very usefull to show immediately for example all special tags in a html-file and so on...
Best regards,
Marc
How to change line spacing?
Submitted by doublebacks on Wednesday, 1 March, 2006 - 06:13
Is there any way to change the spacing between lines in jEdit?
When I use a fontset containing Chinese font and English font, the line spacing is too big, where can I adjust it?

Best Regards.
User login
Browse archives
« February 2006 »
MoTuWeThFrSaSu
 
8
11
17
19
23
25
28
 
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   108250
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