jEdit Community - Resources for users of the jEdit Text Editor
Archives
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
How do you clear the console screen by using keys?
Submitted by 357mag on Wednesday, 19 May, 2010 - 01:09
Is there a way you can clear the contents of the console window by using keys? Like in the Windows command prompt you hit cls and the entire screen clears. If you hit cls in jEdit you will see the message that it exited with code 0 so it appears nothing went wrong but the screen does not clear. It's still full of junk.

And then tried assigning a few shortcut keys to the clear console command in the shortcuts menu but they don't work either. First I assigned cls to the clear console command and it did not clear the console. Then I assigned c to the same command and that didn't clear the window either.

Confused.
Updated CandyFold plugin
Submitted by maulik13 on Wednesday, 19 May, 2010 - 09:11
hi,

I have updated the candy fold plugin. I have tried contacting the author on SourceForge, but I have not heard anything back.
I was wondering how to I share this update?

-Maulik
jerky performance on 64bit win7
Submitted by Rambosmurf on Tuesday, 25 May, 2010 - 10:54
I see there are some other threads regarding this that pertain to slow draws of the textarea and/or windows such as the file browser, with a variety of hardware and os-configurations.

I'm having the same problem after reinstalling my computer with windows 7 64 bit, previously windows 7 32 bit. I did this as i god an 8gb ram upgrade and an ssd, but these hardware changes are imo unlikely to be the source of the problem. In that sense the hardware is essentially the same before and after reinstall.

The performance of jEdit 4.3.2 on the same pc under 32 bit was immaculate, while the performance under 64 bit is jerky. I can sense a slight lag as i type, selecting and scrolling through larger pieces of code is noticable more jerky, windows take a long time to render. I've tried reinstalling both jEdit and java, also googling for 64bit specific editions of java, but there doesnt seem to be any 64-bit specific java packages?

In any case, the java binary on my computer says 32-bit.

What i did notice however (just now) is that jEdit is running under something called server-background mode, as detailed by the about screen. I saw from a different thread (http://community.jedit.org/?q=node/view/4165#7870) that one user outlined a possible cause as java beeing run in server mode. Are these two related, and what exactly does this server mode in jEdit do?

If it helps, the hardware im running on is as follows:
Nvidia quadro fx 770 mobile
Core2duo cpu
Intel ICH9 family chipset
jEdit Console Commandos for Tcl/Tk
Submitted by Gary Gabriel on Saturday, 29 May, 2010 - 10:38
Hi,

jEdit Console commandos do not currently include Tcl/Tk. I was not
successful in finding any in the archives or references.
- Does anyone have the commandos to bind the Tclsh and Wish interpreters
into the Console and could provide them?


Thanks for your efforts and time- Gary Gabriel
filename.extension + ~ files
Submitted by ColaColin on Monday, 7 June, 2010 - 01:45
Why is jEdit creating additional files with a leading ~ ?
For example if I edit a main.bsh it will create a main.bsh~ next to the main.bsh.


Is there a way to stop jEdit from doing this ?
I want to edit files in a dir, which will get zipped and stored and i dont need additional files in it.
Jsch et GSSAPI
Submitted by Jabberwock on Monday, 7 June, 2010 - 09:07
Hi,

I create a class to connect with jsch to a server.
If i send the login/mdp it's ok.

But I want to use the GSSAPI authenfication. I look the jsch examples.
With this code i have the message "Auth failed".

Do you have an idea ? or examples ?

public void connect(String username, String password, String host, int port)
throws JSchException, IOException {
JSch shell = new JSch();
shell.setKnownHosts("chemin_vers_known_host");
this.login = username;
this.serveur = host;
this.password = password;
Session session = shell.getSession(username, host, port);
MyUserInfo ui = new MyUserInfo();
ui.setPassword(password);
//Session session = new Session(shell);
session.setUserInfo(ui);
session.setUserName(username);
/*UserAuthGSSAPIWithMIC uagss = new UserAuthGSSAPIWithMIC();
Log.log(Log.DEBUG,this,"ICI-1");*/
session.setConfig("PreferredAuthentications", "gssapi-with-mic");
session.connect();

channel = session.openChannel("shell");
fromServer = new BufferedReader(new InputStreamReader(channel.getInputStream()));
toServer = channel.getOutputStream();
channel.connect();
/*Log.log(Log.DEBUG,this,"ICI-2");
uagss.start(session);
Log.log(Log.DEBUG,this,"ICI-3");*/
variable_env_lue = false;
if(isConnected()){
//send("echo \"\"");
}
}
Macros for ProjectViewer
Submitted by Jabberwock on Monday, 7 June, 2010 - 09:12
Hi,

I write some macros for ProjectViewer.

You have a macro to do a search in the projects tree, and some for load/unload project, and one to add a project.

If you want to use the unload macro, call always the macro Export.bsh
If you want to load a project, call Import_Tree_Project.bsh, if you want to load a tree project, or Import_a_project.bsh if you want to load only one project.

The Add_project.bsh macro, add a project, and the focus stay where your are, and don't go inside the new project.

The Search macros is simple Smiling
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