jEdit Community - Resources for users of the jEdit Text Editor
Archives
Buffer Selector buggy in latest version?
Submitted by smeet on Wednesday, 21 April, 2010 - 23:46
I've been using Buffer Selector for a while with no problems in version 4.1final, and just upgraded JEdit to version 4.3.1 using java 1.6.0_18.
Buffer Selector now spews out stuff like this:
5:10:00 PM [AWT-EventQueue-0] [error] EditBus: Exception while sending message on EditBus:
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: java.lang.NoSuchMethodError: org.gjt.sp.jedit.EBMessage.getSource()Lorg/gjt/sp/jedit/EBComponent;
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at bufferselector.BufferSelector.handleMessage(Unknown Source)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:212)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:247)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.send(EditBus.java:188)
etc...

It appears to mostly work, but sometimes it won't update the current file when I click in a different buffer etc. Am I missing something, or is this plugin no longer supported?

Thanks for any help,
smeet
Console Plugin - Reading command output
Submitted by weberjn on Thursday, 22 April, 2010 - 11:43
Hi,

has somebody a sample of piping a text area to an external program and getting its output back like with vi
(http://www.linux.com/archive/feed/57727)?
I guess this should be possible, shouldn't it?

select text -> Console -> run current buffer gives "There is no interpreter associated with this buffer"

Thanks,
Juergen
JavaDoc style comments - automated user friendliness
Submitted by xandrani on Thursday, 22 April, 2010 - 15:37
The title sounds hideous but bear with me... When I type: /** and then hit enter. It would be great if the next '*' would automatically appear on clicking enter: /** * <- space here for formatting. Then if I clicked enter again, I'd get: /** * <- space here for formatting. * <- space here for formatting. When I add the final */ this auto-formatting ends; /** * <- space here for formatting. * <- space here for formatting. */ [Note that the string "<- space here for formatting." is just to let you know that a space comes after the *'s each time. It would be blank in practise... I hoped that was obvious ;)] It makes it really nice when writing JavaDoc / Doxygen / PHPDoc type comments. Of course as ever this should be an option, as it will annoy some people... we all have different tastes after all Eye-wink Thanks Smiling
Can't use System.getProperty
Submitted by kamcknig on Thursday, 22 April, 2010 - 20:26
Hey everyone... I'm very very new to plugin development in jEdit, and java in general. I'm trying to use System.getProperty("os.name") so that I can determine the operating system a user is using. But I keep getting a stackoverflow error, with something about the JARClassLoader or something. I can't using anything in System actually. Every line I put that uses it, returns that same error.

Kyle
Strange mouse cursor
Submitted by JonBlanchard on Friday, 23 April, 2010 - 02:49
In the middle of editing a tcl file, the mouse cursor becomes an east-west arrowhead whenever I move the mouse cursor away from the editing area. This includes the menu bar, all menus, the buffer drop-down and the scroll bars. If I open a dialog such as the Global Options menu item, the mouse cursor is normal while the dialog is open. Once I close the dialog, the cursor goes back to the east-west arrowhead outside of the text area, but inside the jEdit app window.

Any ideas?

Thanks.
How to show a plugin title directly as menu item
Submitted by qooraf on Friday, 23 April, 2010 - 14:37
Hi,

I am relatively new to jEdit, and have couple of questions about plugin development.

1 - I like to show Plugin options as a separate menu item same as View or Search. How can i edit the props file to get this.

2 - Is it possible for one of my plugin to read the action string? If yes then any pointer on this would be really helpful.

Thanking you all in anticipation.

Cheers
Qooraf
list of macros, bracket matching, smart tabs
Submitted by ludolf on Sunday, 25 April, 2010 - 22:22
Where can I found possible commands for writing macros? Some I can find if I save a keyboard macro but they are not all (some others are in examples at the documentation).

Is it possible to have bracket matching - if I write e.g. "(" then ")" is added such that the caret is before it?

Is it possible to have a smart tab - jumping to columns of starts of words at the line above?

Thanks for any ideas, ludolf
Shift-Scroll Wheel scrolls horizontally?
Submitted by smeet on Tuesday, 27 April, 2010 - 19:28
This worked for me in previous versions (4.1 I believe).
From the docs (http://www.jedit.org/users-guide/scrolling.html):
> If you have a mouse with a scroll wheel, you can use the wheel to scroll up and down in the text area.
> Various modifier keys change the action of the wheel:
> Shift - scrolls an entire page at a time.

Other modifier keys work with the scroll wheel as documented, it's just the Shift that is different.
This doesn't work for me in 4.3, instead it scrolls horizontally. Is there a way to get back the page scrolling behavior?

Thanks!
Replicating installations
Submitted by alsdias on Wednesday, 28 April, 2010 - 14:06
Suppose that you already have an installation containing your plugins and configurations.
If you desire to replicate this installation to another machine, for instance a virtual machine, without having to do everything again, there is an alternative that works well if the new installation has the same path of the old. If not, some path adjustments may be necessary according to your environment.

1. Install jEdit as usually.
2. Copy the jEdit's user configurations under .jEdit folder overwriting the content of the respective .jEdit folder of the new installation.
For instance, on Vista you find .jEdit folder configuration under C:\Users\User_Login\.jedit, and on XP under C:\Documents and Settings.
3. Copy the full content under the INSTALL_DIR/jEdit, overwriting the full content of the respective INSTALL_DIR/JEdit of the new installation.

It's ready to run.
I use this procedure to replicate my jEdit's intallations on virtual machines.
Edit Mode for HLSL Shader Language (Update) (hlsl.xml v2 by Adam Sawicki)
Submitted by Reg on Saturday, 1 May, 2010 - 17:39
An update of Edit Mode for HLSL - DirectX shader language and effect file format. The HLSL Edit Mode is now in the official jEdit distribution, but it haven't been updated for long time. Now I've created new version that supports all new features up to the newest DirectX 11 (Shader Model 5), including these from the upcoming June 2010 version. Recommended FILE_NAME_GLOB is "*.{fx,hlsl}", although the "fx" extension is already taken by "javafx" mode.
deleting current user?
Submitted by colinbashbash_new on Wednesday, 5 May, 2010 - 20:19
is there a way for me to delete this user? I accidentally created it when i thought the old one was screwed up.
shortcuts
Submitted by colinbashbash on Wednesday, 5 May, 2010 - 20:37
does anyone have an exported profile that i could use to set all the shortcuts to windows standard ones? it would be nice if you could just select a shortcut scheme... *plugin/feature request*
Some keywords not recognised for highlighting
Submitted by ClivePage on Monday, 10 May, 2010 - 14:27
I'm using Jedit version 4.3.1 on Windows XP, and editing some Fortran90. The syntax highlighting mostly works very well, but a few Fortran keywords did not get recognised (so they did not benefit from highlighting, and the Macro to convert all keywords to upper-case didn't work on them either).

For example data types INTEGER and REAL got recognised, but COMPLEX and DOUBLE PRECISION did not. And while nearly all other statement keywords in the code were ok, the CONTAINS statement was not.

I checked the fortran.xml file and all of these are present, so it's not obvious to me why a few keywords do not get recognised in my code.

I'm not sure if this is a bug, or just a feature, or if there's something in the way I have used these keywords that has confused the parser.

Here's a trivial example:

PROGRAM quadratic
IMPLICIT NONE
REAL :: a, b, c, term, root1, root2
COMPLEX :: cterm, croot1, croot2
PRINT *, 'Enter a, b, c:'
READ *, a, b, c

All keywords except COMPLEX are highlighted here.
jedit debian packages are not installable on debian testing
Submitted by Archimedes on Monday, 10 May, 2010 - 16:28
The debian packages of jedit (4.3.2) cant be installed with dpkg (im at debian testing and dpkg 1.15.7.1). The error is:

...
parse error in file '...' near line 7 package 'jedit'
duplicate value for 'Architecture' fiels
...

My last "install" time was the 4.3(.0) version, so i tried that deb, which results in the same error. For completness i checked the 4.3.1 version also, same result.
It seems that a change in dpkg causes this new more strict behaviuor.

The fix is quite simple:

I extracted the deb file and the "rules" stuff
mkdir jedit
dpkg -x jedit_4.3.2_all.dep jedit
mkdir jedit/DEBIAN
dpkg -e jedit_4.3.2_all.dep jedit/DEBIAN

remove the second "Architecture" line in the jedit/DEBIAN/control file and build a new one:

dpkg -c jedit

The resulting jedit.deb is installable without the error.
Issues with TaskList
Submitted by hath on Wednesday, 12 May, 2010 - 18:21
Hi,
I'm trying to use the TaskList plugin. Its working for the most part but it only seems to be able to parse and display thing in the current buffer. It has a tab for all Open files which would be really useful but it doesn't work. Right now I'm using a Sessions plugin and I'm wondering it could be the cause?

The only other plugins I have at the moment are quicknotepad, and TextAutoComplete.
multiple untitled buffers
Submitted by mauricebis on Friday, 14 May, 2010 - 07:19
Hi,

I'm using Jedit 4.3.1 on the following platform:
5:28:44 PM [main] [message] Log: java.version=1.6.0_17
5:28:44 PM [main] [message] Log: java.vm.version=14.3-b01
5:28:44 PM [main] [message] Log: java.runtime.version=1.6.0_17-b04
5:28:44 PM [main] [message] Log: java.vendor=Sun Microsystems Inc.
5:28:44 PM [main] [message] Log: java.compiler=null
5:28:44 PM [main] [message] Log: os.name=Linux
5:28:44 PM [main] [message] Log: os.version=2.6.24-16-generic
5:28:44 PM [main] [message] Log: os.arch=i386

For some reason, I've the screen cluttered with multiple untitled buffers (it goes until 17) which I can't close. I also suspect this has a negative impact on performance. In the hope that this bug can be fixed in the future, would there be a way to edit manually the file where Jedit's state is saved so that on reopening, these multiple untitled windows disappear?

Thanks.
Adding a shortcut to "Execute script" command of the superscript plugin.
Submitted by sinarf on Saturday, 15 May, 2010 - 14:42
I'd love to use jEdit for all my scripting work.

I installed the superscript plugin as explain here: http://groovy.codehaus.org/JEdit+Plugin
It's working fine but I couldn't find a way to add a keyboard shortcut to the "Execute script" button, and there is nothing available from the global options / shortcuts list or even in the plugin configuration.
Adding a shortcut to a command in jEdit is so basic stuff that I cannot believe it has not been done yet.

Before I try to dive into hacking the plugin to give access to the command from menus or shortcut, I thought I ask you guys if I didn't miss something?

Thanks in advance for any information.
A few questions
Submitted by 357mag on Monday, 17 May, 2010 - 08:39
I'm experimenting with jEdit and I downloaded the console plug-in so I don't have to open a command window. I can successfully compile and run my programs from the menu options on top but I also tried typing in the commands at the prompt but they fail.

To compile my program I've been typing: javac Experiment.java

To run my program I've been typing: java Experiment

But Jedit complains and has an exit code of 2

What's the deal?
Simple Question from a Simple Mind
Submitted by stevelw on Monday, 17 May, 2010 - 09:45
I have two questions that have me battering my head against the wall ...

1. How do I configure Jedit so that the find box is empty when creating/opening a document. At the moment every time I start the progam the find box is filled with an old search criteria that I no longer need.

2. How do I arrange for the app to open at a particular location and with a specific sized window?

Thanks
Next line and beginning of the next line
Submitted by kkerst on Monday, 17 May, 2010 - 18:12
I have a basic question: When using the arrow keys to move the caret/cursor to the next line, the position stays where it's at opposed to moving to the beginning of the next line. How do I configure Jedit such that the cursor returns to the beginning of the line each time I use the arrow keys to move to next line?

Thanks!

kkerst
User login
Browse archives
« April 2010 »
MoTuWeThFrSaSu
 
1
3
4
5
6
8
9
10
12
13
17
20
24
26
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   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