jEdit Community - Resources for users of the jEdit Text Editor
Archives
HAML language mode
Submitted by wolfmanjm on Saturday, 2 December, 2006 - 02:15
Here is a first attempt to implement a HAML language mode for the Ruby on Rails HAML plugin.

It is documented here: http://blog.wolfman.com/articles/2006/12/01/a-haml-edit-mode-for-jedit

You can download it from here: http://blog.wolfman.com/files/haml.xml
HAML language mode (haml.xml v1.0 by Jim Morris)
Submitted by wolfmanjm on Saturday, 2 December, 2006 - 03:09
A first attempt to implement a HAML language mode for the Ruby on Rails HAML plugin. It is documented here: http://blog.wolfman.com/articles/2006/12/01/a-haml-edit-mode-for-jedit
Fixing java.lang.outofmemoryerror in Mac OS X
Submitted by AndrewClarke on Tuesday, 5 December, 2006 - 11:27
I want to increase my heap space from 64MB since I run out so often. I have read about and know the command line switch to do this, but I can't figure out how to set this up so it happens automatically when I click on the JEdit.app icon in OS X. Can anyone tell me how to do this?

Thank you very much,
- Andrew Clarke.
XQuery plugin trouble
Submitted by clif2 on Tuesday, 5 December, 2006 - 20:45
I can't get the XQuery plugin to recognise the base URL. The path supplied by the file browsers is delimited by \ and therefore invalid. I substituted / . The path was accepted, but the adapter produced no output. I modified my query so that it didn't depend on the base URL and it worked. So the problem would seem to be with the URL. I also tried prefixing file:/// but that was reported as not pointing to any directory.

Has anyone managed to get the base URL working and pointing to the local file system?

Any suggestions?
SQL Plugin - Connect to MS SQL Server from Linux?
Submitted by erezbibi on Wednesday, 6 December, 2006 - 16:38
I can connect to MS SQL Server with the SQL plugin from WinXP, I just create a User DSN in the ODBC manager of Windows, and insert the DSN name in Project->Properties->SQL...->DSN.

Has any one managed to connect to MS SQL Server from Linux? What should I write in the DSN text box?

Thanks
Erez Bibi
How do I launch the appropriate application for a file?
Submitted by turtlecove on Wednesday, 6 December, 2006 - 19:34
I am trying to write a macro that opens the file named in the selection with the appropriate application. For example, [mysheet.xls] would start Excel and open the file mysheet.xls, [mytext.txt] would open Notepad... I've tried sending the filename to cmd.exe, but that doesn't work. I've tried sending it to Explorer but that just views it in explorer. Here's what I have (not working properly):
  // launch app to open file NOT WORKING!
  /*
  os = System.getProperty("os.name");
  if(os.indexOf("Windows 9") == -1 && os.indexOf("Windows M") == -1) {
    comspec = "cmd.exe /C ";
  } else {
    comspec = "command.exe /C ";
  }
  */
  comspec="explorer.exe ";
  if (myfile.matches("[\\/]")) {
    command=comspec+myfile;
  } else {
    // handle relative paths:
    command=comspec+buffer.getDirectory()+myfile;
  }
  // Macros.error( view, "launching "+command);
  setAccessibility(true);
  runtime = new java.lang.Runtime();
  runtime.exec(command);
  return;


Searching for a file in a list of directories
Submitted by turtlecove on Wednesday, 6 December, 2006 - 19:54
I am trying to find a single specified file in a set of directories. The filename is currently selected, the directories are listed at the bottom of my text file as follows: [path:adirectory][path:anotherdirectory][path:yetanotherdirectory].

The paths are searched recursively (ie: subdirectories are searched as well), or alternatively I can allow globs in the paths like so: [path:C:\toplevel\projects\*\]

I've got searching the current document for [path:xxxx]. I've got the selected filename.
What I am having trouble with is searching the filesystem for the filename. I am trying to figure out how to use DirectoryListSet to do this, but I cannot see how it can be used alone without involving the GUI. I also tried to figure it out using File.list(), but cannot figure out how to specify a filter.
Any help I've found googling around has been in Java, not Beanshell, and since I'm not expert at either I cannot figure out how to translate the Java solutions into Beanshell.

Any help?
BufferTabs: Split screen shouldn't duplicate all tabs
Submitted by turtlecove on Wednesday, 6 December, 2006 - 20:20
The title says it all. When using BufferTabs if you split the screen BufferTabs happily duplicates ALL of the tabs in each split screen. If I have a lot of buffers open this can waste 1/3 of my screen real estate!
Of course, the tabs should be shown ONCE across the bottom and not duplicated when the view is split.
Timed out installing plugin under Ubuntu
Submitted by matthewyoung on Friday, 8 December, 2006 - 22:19
In Ubuntu 6.10, I tried to install the RubyPlugin get Connection timed out exception. At the same time, I try to install plugin in Windows XP and it's fine so the mirror site is not the problem, right?

I am using Sun java version "1.5.0_08" in Ubuntu.

If automatic plugin install does not work, can I manually download and install plugin?
Compiling/Running from within jEdit?
Submitted by vapourmle on Sunday, 10 December, 2006 - 14:47
HI there, I'm new, I have been trying jEdit, I quite like it but I have been alt+TABing between it and a console window which I do my compiling in. this is a bit awkward as I'd like to compile from within the editor, but I can't find any documentation that tells me how to do it? Are there compile/run buttons in jEdit, if so, what are they?

Also, I have never really grown to love its colourless icon scheme, are they ways of changing this, for example skins?
plugin or macro?
Submitted by godfailed on Sunday, 10 December, 2006 - 18:04
http://downloads.symfony-project.com/demo/admin/admin_generator_commented.mov

I was watching this video and noticed something in textmate. I don't know if thats a macro's or some form of keyword based autocomplete. Is there something in jedit that is simular to this? or would it have to all be done through macro's?
Jedit forget (some) settings
Submitted by matthewyoung on Sunday, 10 December, 2006 - 22:56
I am using 4.2final under Ubuntu 6.10.

I set "View->line number" checked, "Plugins->Buffer tab" checked. On restart, these settings are not restored. But tab width setting is. What's going on?
Edit Modes: Brackets in Literals
Submitted by jaaa on Wednesday, 13 December, 2006 - 09:13
Hi, I have a problem with edit modes and string literals with brackets in jEdit. I'm working on a little custom query language at the moment. jEdit would be an ideal editor for it if I just could get the edit mode working. The problem is that I have literals that contain brackets and that seems to break the "Complete Word" feature as well as the syntax highlighting. Here's an example of the mode: " " = AND OR Attribute1 Attribute2 Attribute3 NULL Value1 Here's an example of a simple query: (Attribute1 AND Attribute2) OR (Attribute1 AND Attribute3="Value2 (detail)") Uncommenting the literal with the brackets breaks the edit mode as already mentioned. Is there a way to get aroung this? Am I missing something? I tested with both 4.3pre and 4.2 on WinXP/jdk1.5.0_09. Thanks, Jussi
View File Sys Browser as Tree
Submitted by mattslav on Wednesday, 13 December, 2006 - 14:44
I would like to view the File System Browser as a tree, similar to Windows Explorer. Is this possible?
compilation errors
Submitted by mich24 on Thursday, 14 December, 2006 - 09:25
I have create a project with JBuilder with all the jEdit source files but I get many compilation errors... why?

Thx a lot for any ideas!
line numbers
Submitted by mich24 on Thursday, 14 December, 2006 - 09:26
Can somebody tell me in what class the line numbers of the program editor are displayed? I have to have a look on the code beacause I have to implement line numers in another editor...

thx a lot!
4.3pre7, scrolling bug
Submitted by lukescammell on Thursday, 14 December, 2006 - 17:28
Sometimes when I'm editing HTML, PHP or ASP I either hit CTRL+HOME or PGUP a few times and the edit window cuts off the top part of the page. It's still there, but I can't move the scrollbar up any further and I can't see the text. If I close the file and then reopen it everything's fine until it randomly happens again. I can't find anything that causes this to happen, it appears to be just random for me :/

java.lang.NullPointerException
at org.gjt.sp.jedit.textarea.TextArea.scrollTo(TextArea.java:862)
at org.gjt.sp.jedit.textarea.TextArea.scrollToCaret(TextArea.java:714)
at org.gjt.sp.jedit.textarea.TextArea._finishCaretUpdate(TextArea.java:5051)
at org.gjt.sp.jedit.textarea.TextArea.finishCaretUpdate(TextArea.java:5203)
at org.gjt.sp.jedit.textarea.TextArea.moveCaretPosition(TextArea.java:2214)
at org.gjt.sp.jedit.textarea.TextArea.moveCaretPosition(TextArea.java:2180)
at org.gjt.sp.jedit.textarea.TextArea.moveCaretPosition(TextArea.java:2169)
at org.gjt.sp.jedit.textarea.TextArea.goToBufferStart(TextArea.java:3150)
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.invokeMethod(Reflect.java:134)
at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
at bsh.Name.invokeMethod(Name.java:858)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
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:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:509)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:440)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:406)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:373)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEventKeyStrokeHandling(InputHandler.java:295)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:184)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4557)
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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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.pumpOneEventForHierarchy(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)
Donations
Submitted by philroche on Friday, 15 December, 2006 - 12:30
Hi Guys,

As part of my Christmas Charity giving this year, I would like to donate a small amount to Jedit to help with hosting or whatever. I cannot find a sourceforge donate or paypal donate link anywhere.

Any clues as to where I might find one?

Cheers and keep up the good work.

Phil
CA-Clipper 5 Edit Mode (ca-clipper-5.zip v0.1 by Daniel Gonçalves)
Submitted by daniel.dg on Friday, 15 December, 2006 - 22:01
The edit mode for CA-Clipper 5 XBase language. The mode includes statements for Class(y) 2.4b OO Engine library and all documented functions provided by the following libraries:
  • CA-Clipper Tools
  • BLINKER Functions for CA-Clipper 5
  • Class(y) 2.4b OO Engine Library
Probably you want to disable the 'foxpro' edit mode for .PRG files to allow jEdit to use this CA-Clipper 5 edit mode.
Request For "Grep" Feature or Plugin
Submitted by Sledged on Monday, 18 December, 2006 - 22:24
I'd love to be able to search files using a "grep" command. Sometimes I work on a Windows machine, and MS's "find" command many times simply isn't flexible enough. Also, there's something to be said about not leaving the window in which you're working.
User login
Browse archives
« December 2006 »
MoTuWeThFrSaSu
 
1
3
4
7
9
11
12
16
17
21
23
25
27
28
31
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