jEdit Community - Resources for users of the jEdit Text Editor
Archives
Please enhance ProjectViewer to allow multiple open projects
Submitted by mabra on Friday, 12 August, 2011 - 20:44
Hi ! I just made an additional comment to: https://sourceforge.net/tracker/index.php?func=detail&aid=2965024&group_id=588&atid=997936 Is there any chance, that - some day ;-) - someone has a look onto it and give reasonable feedback?? If I see, what has changes in the meantime, may I ask: "Is JEdit dead" ??? Thanks a lot and br++mabra Hello! In real world, one works usually with multiple projects at "the same time" and there are a lot of situations, where you generalize work from one or two projects into a new one [into a library, for example]. Additionally, such "parallel open" behavior would really add nice other features to work with:Say, bundle all my daily note-files together into a project, so I can access them all at one with "a single click". I would prefer to allow the ProjectViewer to allow this. This would be - from my perspective - the greatest enhancement to the JEdit plugins ever! Thanks a lot! --mabra
How to run a second copy of jEdit?
Submitted by mabra on Friday, 12 August, 2011 - 20:50
Hi All !

I cannot longer organize my projects using jEdit, due to the inability of the project viewer to open more then one project at a time. I end up to have permanently open something like >> 100 files ...

Is there any way to start a second copy with another configuration?
So, rename the jar, copy it into another directory ... ?
Sorry, have less experience with java.

Any tips could be really great!

Thanks anyway and
br++mabra
Console commando files to integrate jedit and RVM (ruby Version Manager) (rvm-jedit.zip v0.0.1 by ZIOLele)
Submitted by ZIOLele on Thursday, 18 August, 2011 - 15:24
Hello, i've created this commando file and the rvm wrapper to integrate rvm and jedit. To install: uncompress the zip in your commando dir and make sure rvm-ruby-wrapper.sh is executable. Then in console settings associate the ruby interpreter with the command rvm-ruby. You can use project specific .rvmrc the wrapper load them before executing ruby.
Revival
Submitted by Daniel Ly on Thursday, 25 August, 2011 - 14:02
It seems that jEdit experiences a revival.

I am happy because I depend on jEdit utterly and totally. jDiff plugin was broken for a long time (sometimes it hangs sometimes jEdit is very slow after using jEdit), but the new version of jDiff fixes that.

Thank you!!
jEdit Freezes in OS X Lion
Submitted by postlethwaite on Thursday, 1 September, 2011 - 00:30
I was recently given a new laptop with OS X Lion 10.7 installed for my job.

I have been using jEdit, daily, on various platforms since 2002.

Several times a day (but not always), when I go to save a file, jEdit freezes up and has to be "Force Quit." This only happens on my Lion install. It does not happen on my other Mac which uses Snow Leopard 10.6.

This problem happens on jEdit 4.4.1, 4.4.2 and 4.5pre1.

I tried out Eclipse and it froze up on me, once, on a save. I did not get it to do it again.

There are no errors in the logs, that I can see. jEdit does not use extra resources or hike up the load on the CPU, it just freezes and does not return, even after several minutes.

It seems more than a coincidence that I was able to get the freeze to happen on Eclipse, which is a completely different code base. Eclipse and jEdit both use Java.

Java is different under OS X Lion when compared to Snow Leopard, but I do not recall the exact details.

Is there anything I can provide to help figure this out?
Complete newbie problem with jedit+Ruby
Submitted by Sadaharu on Sunday, 4 September, 2011 - 03:22
Hi everyone.

I'm completely new to jedit, ruby and programming in general.
Was trying to execute a simple bit of code in jedit:

puts 'Hallo'
puts "Hello there, and what\'s your name?"
name = gets.chomp
puts 'Your name is ' + name + '? What a lovely name!'
puts 'Pleased to meet you, ' + name + '. :)'

When I run it, it gives a blank prompt without printing the initial "Hallo" and 2nd line puts. If I execute it in Komodo I get the same problem.

If I run it in terminal, however, it works fine.

I have the ruby console plug-in.

Also - I cannot figure out how to get the console to use ruby 1.9.2 instead of 1.8.7. I did manage to upgrade terminal ruby version.

I would greatly appreciate any help! Please remember that I'm not so savvy, you know, if you could limit yourself to simpleton-speak, I'd be much obliged.
Plugin fails to parse trees with more than one top level
Submitted by Jose Quesada on Wednesday, 7 September, 2011 - 11:04
Consider the following outline: A rtrtrt tarstrt artrat B ttrtratrs C ratrtrtr I expec to see on the sidekick (at level 1): A B C Instead I get A rtrtrt B C Plugin fails to parse a any tree with more than one top-level item. It thinks that once you indent, there's no going back one level :)
Outline plugin - bug fix (Outline.jar v0.1 by Shlomy Reinstein)
Submitted by shlomy on Wednesday, 7 September, 2011 - 20:24
This version of the plugin fixes the following case, where some new fold should jump multiple levels back in the tree:
A
       Intro
               tarstrt
B
       ttrtratrs
C
       sdstd
Here, B should be a sibling of A. Previously it used to be under A.
How to catch message about buffer change
Submitted by Riven on Wednesday, 7 September, 2011 - 20:38
Hi,

I'm trying to develop simple plugin which response to buffer changes. So far I build a JAR file called SimpleLock.jar, containing .props file actions.xml and apropriate java.class files.

My problem is, that after creating and saving some buffer no Dialog appear and no text file is written on C: drive (these are the actions, that should be done after buffer saved).

Here is sample source code:

public class SimpleLockPlugin extends EBPlugin
{
public void handleMessage(EBMessage msg)
{
//I guess some dialog should appear if any message is captured.
JOptionPane.showMessageDialog(null, "Some message.");

//My own class for writing content to file
FileEditor.writeContentToFile("Some message.", "C:\\simpleLock.txt");

if(msg instanceof BufferUpdate)
{
//I guess some dialog should appear if any message related to buffer update is captured.
JOptionPane.showMessageDialog(null, "Some message.");

if( ((BufferUpdate) msg).getWhat().equals(BufferUpdate.SAVED) )
{
String path = ((BufferUpdate) msg).getBuffer().getPath();

//I guess some dialog with path to saved file should appear if any message related to buffer saved is captured.
JOptionPane.showMessageDialog(null, path);
return;
}
}
}
}

I aslo get some errors at jEdit startup, right after opening plugin manager window:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Every time I open plugin manager wondow two SAXParseException appear.

Is it related to my probem with catching buffer changes?

I'm using jEdit 4.4.1

Any help would be appreciated.

Best regards,
Riven
Need help with macro creating a new view unconnected to the current one
Submitted by tvojeho on Thursday, 15 September, 2011 - 13:36
Hi, I would like to create a macro that would close currently open buffer, open it in a new view and run another macro (*) in the new view on the buffer. The second macro often takes a minute or more, and I'd like to be able to work with the original view in the meantime. I need some help on how to create an unconnected new view with only the one buffer.

1) I have tried to use the 'View/New view' command, but it opens all the buffers in the new view which are open in the original view, no matter what bufferscope I try to set.

2) I have used macro recorder and wrote this code:

bsm = jEdit.getBufferSetManager();
if (bsm.getScope() == BufferSet.Scope.global) {
jEdit.newView(view);
}
else {
View.ViewConfig config = new View.ViewConfig();
config.docking = view.getViewConfig().docking;
jEdit.newView(view,buffer,config);
}

It opens only the current buffer in a new view, ok, but the view is still connected to the original and running the macro (*) still freezes the original view.

3) I tried launching the new view from command line with the options -newview -noserver, which worked fine to create an unconnected view, where running macro (*) did not freeze the original view, but the new view still opened all the buffers as in the original.

Any help would be appreciated. I am using the latest jedit4.5pre1 daily version.

tvojeho

P.S. I tried submitting this to jedit-users list, but my message bounced back.
jEdit Remote Control application for Android (RemoteControl.zip v0.2 - new by Shlomy Reinstein)
Submitted by shlomy on Friday, 16 September, 2011 - 03:23
This is a jEdit remote control application for Android. This application can connect to jEdit using the RemoteControl plugin (courtesy of Matthieu Casanova), and then you can use it to select and close buffers.
To install it, open the attached zip file. It contains:
  1. The RemoteControl plugin for jEdit - RemoteControl.jar - which you should copy to ~/.jedit/jars (or %HOMEDRIVE%%HOMEPATH%\.jedit\jars on Windows).
  2. The Android application - AndroidRemoteControl.apk - which you should install on your Android device (adb install ...).
To use it:
  1. Configure the ip, tcp port and pincode (from the RemoteControl plugin option pane), then click Connect.
  2. You can now use the following gestures: drag right => next buffer, drag left => prev buffer, draw an 'x' (without lifting the finger) => close buffer.
  3. You can click any of the buffer names to make it the current buffer.
Please ignore the 2nd line of components, showing two combo-boxes. They are currently not implemented.
Any ideas for extending this app? Feel free to suggest.
New version of JCompile!!!
Submitted by jstgmr on Saturday, 17 September, 2011 - 05:36
JCompile for version 4.4.x!!!!

I love JEdit so far but it is quite frustrating to have to use Terminal to compile my programs! I don't know anything about creating plugins or I would help but it would be really nice to see the JCompile plugin updated!!
PHP manual integration - exec() runs bad command
Submitted by nanuqcz on Friday, 23 September, 2011 - 12:01
Hello,
when I run command
> HH C:\\php_manual_en.chm::/res/function.str-replace.html
in Windows console, it really runs "C:\\php_manual_en.chm::/res/function.str-replace.html".

But if I run the same command via exec() in BSH file, it runs this:
> res://ieframe.dll/dnserrordiagoff_webOC.htm#mk:@MSITStore:C:\php_manual_en.chm::/res/function.str_replace.html

Because of that, PHP manual runs and shows error 404.
Thank you for answers.
Global defaults not applied at start-up
Submitted by snark on Saturday, 24 September, 2011 - 05:33
( I've just started using jEdit, so probably done something dumb ... )

When I first start up jEdit, it doesn't apply the settings I changed under Global Options. After starting jEdit, I have to go to the Global Options dialog (where I can see that all my changed settings have been loaded), click Apply, then click OK, after which all the fonts, key assignments and so forth are applied. How can I make it do that automatically?

I'm running the Debian Linux jedit package, version 4.3.2.
ContextHelp plugin
Submitted by nanuqcz on Saturday, 24 September, 2011 - 11:24
Hello,
I installed Context Help plugin and now I am trying how it works. I open some PHP file, select some function (e.g. str_replace), click Plugins > Context Help > Search Keyword. But nothing hapens.

What am I doing wrong? Thank you.
Basic PHP completion
Submitted by nanuqcz on Sunday, 25 September, 2011 - 13:09
Hello,
how can I use PHP completion in jEdit? Something like this: michal.webshake.cz/userfiles/completion.png . I just want PHP native functions support.

If I use CTRL+B shortcut, I can see names of functions, but can't see any functions parameters or return types.

Thanks for answers
Special and accented characters get replaced with gibberish
Submitted by Dominicus on Monday, 26 September, 2011 - 01:46
Using jEdit 4.4.1 in Win7

Some of my files include strings with special accented and international characters.

These will display and compile fine during a jEdit session.
Then at random future opening of these files, jEdit will replace these characters with two other unrelated special chars.
How can I prevent jEdit from making these replacements?
Vim-like command line
Submitted by imgod2u on Monday, 26 September, 2011 - 22:46
I'm curious whether there is a vim-like command line that I can access with a key shortcut in jEdit. Something that I can do things like s///g regex replaces, open a file, etc.

Being more keyboard-centric, the various GUI's can be rather cumbersome, especially the one for search-and-replace. It'd be easier (for me, at least) to be able to hot-key, open and type the filename as well as s///g for search-and-replace.
Autocomplete Brackets
Submitted by flebber on Wednesday, 28 September, 2011 - 10:29
Hi

I am trying to find a way to enable automcomplete of brackets ( ) [ ] { } etc. The only thing I can find is a link to an unauthorized plugin called firstmate. Is there a way to enable autocompletion?
mode syntax function (...) {...}
Submitted by captainhunt on Wednesday, 28 September, 2011 - 14:08
Hi there,

I am trying to write a mode for a simulator. The syntax looks like

Quasistationary (<options>) {<equations>}
Transient (<options>) {<equations>}
I'd like to match Quasistationary and Transient separately and somehow handle the <options> and <equations> in different rules. I tried something like:
<SPAN_REGEXP TYPE="KEYWORD3" DELEGATE="QS_OPTION"><BEGIN>Quasistationary\s*\(</BEGIN><END>)</END></SPAN_REGEXP>
<SPAN_REGEXP TYPE="KEYWORD3" DELEGATE="QS_EQ"><BEGIN>.*\{</BEGIN><END>}</END></SPAN_REGEXP>
<SPAN_REGEXP TYPE="KEYWORD3" DELEGATE="TRANS_OPTION"><BEGIN>Transient\s*\(</BEGIN><END>)</END></SPAN_REGEXP>
<SPAN_REGEXP TYPE="KEYWORD3" DELEGATE="TRANS_EQ"><BEGIN>.*{</BEGIN><END>}</END></SPAN_REGEXP>
However, the problem with this approach is, that Transient equations (line 4) are captured by the Quasistationary equations (line 2) already.

Any ideas how to solve this?

Thanks in advance
Captainhunt

User login
Browse archives
« August 2011 »
MoTuWeThFrSaSu
1
3
4
5
6
7
8
10
13
14
15
16
17
19
20
21
22
23
24
26
27
28
29
30
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   108249
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