jEdit Community - Resources for users of the jEdit Text Editor
Archives
(Major) Feature proposals, and some impressions on switching from emacs to jEdit
Submitted by Anonymous on Saturday, 19 February, 2005 - 05:33
Hello,

I recently gave jEdit a test drive. Some background: I'm an emacs user (5+
years) who is looking to switch editors. My reasons are that (a) hacking on
emacs is hard, I hate lisp, and accomplishing anything serious is just way too
much trouble (b) emacs development has slowed down, to the point that emacs is
now missing some of the features that the newer editors have e.g. folding (c)
the emacs syntax highlighting and indent for the languages I use most is broken
in very annoying ways. On the other hand I love emacs because (a) I can do
everything without using the mouse and (b) I can do everything without opening
any windows or dialogs outside my one editing window. I cannot stress these
two features enough. Not that I don't like having the gui stuff - it is a
great learning tool until you memorize all the shortcuts, and then great to get
the less-often-used stuff. No gui makes emacs very hard to learn. But being
forced to interact with a gui all the time while editing is a deal-breaker. I
edit with the keyboard.

I have now tried out jEdit pretty thoroughly, including configuring it exactly
the way I want, installing a whole bunch of plugins, using it for about half my
editing needs for a week, and writing a simple plugin.

Overall impression: jEdit is a very solid editor. It is a contender for emacs
replacement, and that is saying *a lot*! Superior in some regards (syntax
coloring, text folding, ease of writing extensions). Speed is about the same.
It has a few things which make it less ergonomic for heavy use though, and I
really want to fix those. I consider it to have enough promise that I would
actually spend time to improve it.

Now the problem areas:

major stuff:
* dialogs considered harmful: a lot of functions which can be done in emacs
without opening a modal dialog require one in jedit. examples include
open-file, save-as, find-and-replace, confirm-close. this is bad because (a)
it is slow (b) the dialogs are modal (c) it usually requires switching from
keyboard to mouse which is extremely unergonomic.

* many different text areas: a number of functions seem to have text areas
which are not JEditTextAreas, and in which the regular editing commands do not
work (try C+backspace). this includes the actionbar, search bar, autocomplete,
file browser, and many/most of the plugin interactions (e.g. console). this is
related to the fact that they are displayed in modal dialogs or other
specialized gui components instead of in regular text buffers (as in emacs).

* there is no way to pass parameters to an action in the action bar (other than
repeat count). e.g. C+enter open-file foo.txt or C+enter mode java . As a
result gui dialogs are necessary for each command like this.

* ambivalent about the way autocompletes work. I think I prefer the
completions showing in a temporary split pane (as in emacs). the
scrollable-menu-in-middle-of-screen approach is harder to use since you can't
(for example) page down or search, and a long list means you have to use the
mouse. also, one gets used to reading text that starts at the left margin and
has the regular text colors. using numbers to select choices is a nice touch
though.

minor stuff:
* action-bar history should not record simple keyboard navigation. perhaps
there should be a way to look at the complete history (CS+enter?), but
"prev-char" is not useful most of the time.

* autocomplete completes from the middle, not just start. this is potentially
useful, but only if there is no start-completion. the order of completions is
imperfect, typing "save" in actionbar and hitting tab shows a list in which
"save" itself is the third item.

* tab should always cycle through possible completions. C+b may be better as
C+tab, and should also cycle (and show the selected completion inserted into
the buffer).

* C+b only completes from the same buffer, not all opened buffers.

* buffers cannot be named without being stored on disk (or a vfs?). if buffers
are used for interaction (as in emacs), this would be very useful. also, there
is no command to switch to a named buffer.

* stress test: open 5Mb of text - works reasonably well, memory usage is 12Mb.
replace every 'a' with 'b' in 5Mb of text - works in 4.3pre1 (fast, but 44Mb
memory used), fails in 4.1 (out of memory, over 100Mb used). open 5Mb of
syntax-colored code - can view ok, but getting random exceptions when typing
into it (in 4.3pre1).

* need scratch buffers (not saved to file, not named, and no warning when
closing)

* selections should not go away when switching buffers.

* need to read man pages without leaving jedit. I have written a plugin that
does this (JManpagePlugin, I'll post that in a bit).

I realize that some of the things I would like to see are major changes, and
that many users may not like them Eye-wink In any case they should be optional.
If you think it is better, I could make them into a plugin (or plugins) instead
of adding them to the core. From looking at the plugin interface, I believe
it is possible to write plugins for actionbar-and-buffer-based (non-dialog)
file open/save, directory and archive browse, search-and-replace, autocomplete,
and console. I can do most of that, but I'm sure I would need some help when I
get stuck, and of course if anyone wants to work with me on these features that
would be great. Passing parameters using the actionbar and a few other
supporting core hooks would be very useful for this. Making the actionbar and
search bar into JEditTextAreas can only happen in the core and looks pretty
major (but very nice, if possible).

Well, there it is, what do you guys think?

-A.


P.S. I imagine you might think that "I just want to turn jedit into emacs". In a sense, I do, I want all the good (in my opinion) aspects of emacs. Using buffers for interaction instead of dialogs is one of the ways in which emacs is better (although I agree it is not for everyone, and so it should be optional). In another sense, no, I want an editor that is the same or better in all regards, not better in some but worse in others.

--------
I'm cross-posting this to jedit-devel and here so more people have a chance to comment. I'd post it under my account but for some reason I can't log in (using drupal.org).
missing packages
Submitted by Anonymous on Saturday, 19 February, 2005 - 16:37
hi, i downloaded jedit 4.2 and loaded the sources into eclipse 3.0.1. i mentioned, that for a error free compilation there are some packages missing. why are they not included into the scr? can somebody tell me where to download these missing packages. it's something about com.apple and also com.sun.javadoc, as I found out. this is my first try to compile such a project, so i'm a newbie. regards.
How is the about dialog's scrolling credits done?
Submitted by Anonymous on Sunday, 20 February, 2005 - 03:02
I briefly checked the CVS, but I couldn't reallt find the answer to my questions: How are the rolling credits in the about dialog done? Java2D or some external library?

Thanks!
Installing on JumpDrive
Submitted by kenweb on Monday, 21 February, 2005 - 05:37
Is it possible to install Jedit and JRE on JumpDrive and be able to use the jedit/jump drive on different Window PC's?

I use several PC's and it would be nice to be able to install jedit and its environment once and carry the program with me when i move to a new computer.

Ken
Unindend by backspace
Submitted by Anonymous on Monday, 21 February, 2005 - 21:14
"Backspace unindents" is the last one feature I miss from jEdit, after we got back wrapping text at window edge in 4.3pre1. jEdit is great, but this feature is the one, that makes me still using Delphi and Eclipse -- their editors all can unindent by backspace. Please?!
Commandline option for column
Submitted by Anonymous on Tuesday, 22 February, 2005 - 08:49
There's already a commandline option for putting the carret at a specificied line (+line:123). It would be nice if there was another option to specify the column too.
Project Viewer does nothing
Submitted by Anonymous on Tuesday, 22 February, 2005 - 22:35
I installed a basic version of JEdit and then added the project viewer plugin. I created a new project and selected the "Yes, import all files in root directory" option when prompted. Now, when I return the the Plugins->Project Viewer->Projects menu I can see the new project. However, when I select this project from the popup menu, nothing happens. I don't see a toolbar or anything. The root folder has files and directories underneath it. Am I missing something? The help documentation doesn't seem helpful because I can't even see the toolbar that it mentions.

Any help would be greatly appreciated.

Cheers,

Tripp
code2html commandline in 4.2
Submitted by Anonymous on Wednesday, 23 February, 2005 - 07:35
The version of code2html in cvs has a command-line option I'd like to use, but I can't compile it against the current version of jedit. It does compile against jedit 4.0.

Are there any barriers to refactoring it to work with jedit 4.2? Does anyone know of a better multiple-language HTML syntax highlighter that can run from command line (or ideally, Ant)

Thanks, cosmo
Updating Jazzy spell-checker user dictionary
Submitted by Anonymous on Wednesday, 23 February, 2005 - 16:41
I'm using the Jazzy spell checker. I find the instructions confusing (and out of date). My user dictionary is in a "words" directory, which is used correctly. However, clicking "Add to Dictionary" doesn't update any dictionary, altho it accepts this request without comment.

Any suggestions on how to get it to update a dictionary would be greatly appreciated. Thanks in advance.

-- Fred (fred.swartz@gmail.com)
Adding JEdit style syntax highlighting to standalone
Submitted by Anonymous on Wednesday, 23 February, 2005 - 21:31
I was trying add syntax highlighting to an existing standalone application. I think that JEdit has the best way of doing this. I don't mind including all the Jedit resources
including, startup scripts, etc, but I would like to just add the highlighting.

Is this in the wiki somewhere.

Here is my email(I may not monitor the forum)
berlin.brown { at } gmail.com
Dead keys - can't type non-US characters
Submitted by Anonymous on Wednesday, 23 February, 2005 - 23:50

Hi dear jEdit users,
I pretty much love jEdit and so first thing what I did when I switched from WinXP to Fedora Core 3 Linux last week was installation of Sun JDK 1.5.something and lastest jEdit 4.3pre1. But what a suprise! I can't type certain characters on my Czech keyboard layout (numbers from 2 to 6 at aplhabetic keyboard). Because I have notebook and can't just use numpad and this makes work nearly impossible. I must copy&paste when I need these numbers!

After my web research I observed that is probably very very old bug in Sun's Swing implementations (see bugs http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799499, and bugs 4935357, 4707542, 4765333, 4797332, 4799500, ...). Symptoms are still same - can't type non-US nation characters. Somebody reports german "sharp B", <, > and may other various characters. My case are numbers.

jEdit's keyb tester knows about these keys but don't pass it to screen (they are filtered). I can send excact dump.

I simply can't believe that all users at Linux do copy&paste to insert dead characters. Is there *any* workaround?

Thanks in advance for all replies!

Have a nice day to all
Libor (Czech Rep, Europe)

Bugs?
Submitted by Anonymous on Thursday, 24 February, 2005 - 07:46
1. jEdit has problem in HTML mode. When the end of HTML comment is //--> in script tag jEdit does not see that end.

2. In parametrized abbrev. there is a problem if parameter has '\n' sign.
jedit multiple sessions
Submitted by Anonymous on Thursday, 24 February, 2005 - 08:22
Hi to all members,

I'm a new user of Jedit, and I didn't manage to open multiple sessions : in fact I installed Jedit 4.2 on SunOS 5.8 server, and it works fine when I execute it from server. but, from another station, even with the environment variable DISPLAY well set, if I launch Jedit, the window is opened on the server console, and not on the client console !

Have you an idea about this problem ?

Thanks.
Javascript
Submitted by Anonymous on Thursday, 24 February, 2005 - 10:25
Able to support beautify buffer when we use JAVASCRIPT
Spam in forum comment
Submitted by Anonymous on Thursday, 24 February, 2005 - 11:30
I just want to tell the admins of this great site that somebody tries to abuse it: see http://community.jedit.org/?q=node/view/1995
Creating account
Submitted by Anonymous on Thursday, 24 February, 2005 - 17:04
Hello to administrators of jEdit Community pages.

There is one problem I have last days.
I tried to create account within this community www pages but no email with password has come into my mailbox till now.
Could you advice what's wrong?!

Thanks a lot.

Tomas
Where's my find dialog?
Submitted by mlongmire on Friday, 25 February, 2005 - 17:31
I recently changed machines, from a laptop with screen resolution of 1920x1200 to desktop with resolution of 1280x1024. I copied over my settings folder from the old machine and now my find dialog is off screen when I open it.

What file in the jEdit settings folder has the positions for the find dialog?

Please cc any answers to me @ mailto:mark.longmire@infor.com

Thanks
Mark
Click on a file with extension java and the file opens in jEdit in windows 2000.
Submitted by Anonymous on Saturday, 26 February, 2005 - 04:56
Thought I would share this. I created a batch file called jeditstart.bat. The file contained the following line:

"C:\Program Files\jEdit 4.2pre15\jedit.jar" %1

The quotes were neccessary.

Then in My Computer - Folder Options - File Types - click on New button for new file extension and type java, then click ok. Now click the Change button and then click on other button and browse to your jeditstart.bat file and click on it to highlight it and click the Open button. Then click the Ok button.

Now you can double click a file with an extension of java and it open in jEdit.
Building jEdit from source
Submitted by clim1219 on Saturday, 26 February, 2005 - 08:58
I checked out jEdit from CVS and try to build it but it complains of a missing ant target "dist-13".

I guess I miss something here. Could someone kindly point me to the right direction.

Here is the console log:

D:\projects\opensource\jedit>ant -Dant.full.path=C:/Java/apache-ant-1.6.2/bin/ant build
Buildfile: build.xml

prepare:

jEdit:

BUILD FAILED
D:\projects\opensource\jedit\build.xml:31: The following error occurred while executing this line:
Target `dist-13' does not exist in this project.

Total time: 1 second


Thanks,
Chris
Highlight HTML Not working
Submitted by Anonymous on Sunday, 27 February, 2005 - 16:28
Hi,

I am having problems getting HTML to be highlighted. The HTML I am editing are withing .PHP extensions.

What do I need to do to get it to work?

Thanks.
User login
Browse archives
« February 2005 »
MoTuWeThFrSaSu
  6
12
14
 
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