jEdit Community - Resources for users of the jEdit Text Editor
Archives
Java Swing Keyboard Events
Submitted by adraken on Sunday, 14 March, 2004 - 03:35
I'm in the middle of developing a plugin to provide EditPane switching like the Alt-Tab behavior on Windows and Macs. The idea is that although jEdit allows you to switch to the *next* EditPane, what you really want to do is switch to the last active EditPanes.

Windows lets you hold down Alt and hit Tab repeatedly to cycle through all the windows (in a circular linked list). When you find the one you want, you let go Alt. The newly-active window gets removed from the linked list and gets placed on the head. That means that you're able to switch very quickly between recently used windows with relatively little effort.

I've been trying to emulate this behavior, and since this kind of keyboard manipulation goes beyond the simple keyboard shortcuts, I've been trying to handle these events through the KeyListener interface, using the View.setKeyEventInterceptor() function to grab events. However, I'm noticing that I'm never receiving KEY_PRESSED events, only KEY_RELEASED and KEY_TYPED events. And even when I receive the KEY_RELEASED events, I'm never getting the KEY_RELEASED events for modifier keys like Ctrl or Alt.

Does anyone know if there's anything that jEdit does to keyboard events that might make this act weird? Or is this pretty standard behavior in Swing apps?
jedit and yellowdog linux
Submitted by Anonymous on Sunday, 14 March, 2004 - 22:52
Hey Folks,
I was wondering if anybody has had any success getting jEdit to run under yellowdog linux (a linux/ppc distro for apple computers)

I have the latest blackdown linux version installed (1.3.1) and get the same errors when I launch the jEdit Java Based installer.

The first install window comes up saying someting to the effect that "You need to answer the questions in the following screens ..." and the window has the cancel, prev/next buttons just fine

Any time the mouse moves over the content area of the Java Window, I get this error:
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 6213
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:1520)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:1390)
at java.awt.Component.dispatchEventImpl(Component.java:2507)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Window.dispatchEventImpl(Window.java:926)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)



And any time I try to click one of the buttons, I get this:
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 674
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:1520)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:1390)
at java.awt.Component.dispatchEventImpl(Component.java:2507)
at java.awt.Container.dispatchEventToSelf(Container.java:1233)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2449)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:2314)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2189)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:926)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

any and all help would be greatly appreciated Smiling

thanks,
-steve
Toggle Split (Toggle_Split.bsh v0.5 by Claudio Vicari)
Submitted by cvicari on Monday, 15 March, 2004 - 16:30
Switches the main split pane between two open views, splits the pane if it's not already splitted
+line option in command-line from windows?
Submitted by bjorn on Monday, 15 March, 2004 - 21:23
Has anyone gotten the +line option working on the command line under windows? For example, if I send a command:

C:/jEdit42/jedit.exe MyFile.java +line:4

It always treats the '+line:4' as though I am trying to open a file of that name. Other variants (e.g., -- MyFile.java...) have the same result.

Is there no way to pass in a line number on Windows if you are using the launcher?

Thanks for any help...
Can't get plug-ins to work
Submitted by Anonymous on Tuesday, 16 March, 2004 - 04:45
I have downloaded and installed a couple of plug-ins but have not been able to get even one of them to work. For example I have installed the JCompiler, the Debugger, the CodeAid plug-ins but cannot get any of these to work. eg cannot run the debugger. What I am doing wrong ?. I am running jEdit Version 4.2pre9. OS is Win NT 4. Immediate help will be appreciated.
Proof of Concept SwitchPane Plugin
Submitted by adraken on Tuesday, 16 March, 2004 - 04:59
Hi,

I've wanted jEdit to have an Alt-Tab window switcher
(like on Windows and Mac) for edit panes for a while
now. That is, you'd cycle through windows, but the
order changes based on which windows receive focus, so
you can quickly switch between 2-3 windows.

This weekend, I hacked together this proof of concept
plugin to demonstrate the idea. After bumping my head
on the various KeyEvent workarounds and AWT warts, I
finally got it to work.

http://www.stanford.edu/~adraken/SwitchPane.jar

Just drop it in your jars/ directory and restart
jEdit. Use CTRL-BACKQUOTE (Ctrl-`) to switch between
edit panes.

The keyboard shortcut is hardcoded in and there are no
actions or options. But, if you like it and would like
to spend some time polishing it, the source is in the
JAR. Go for it.

Have fun.
Dave

P.S. I had to bypass the keyboard shortcut framework
because there was no other way for the plugin to know
when you let go of the modifier key. If you're still
confused, play with the real thing (Alt-Tab) and
notice how it behaves. But because I did that, we
can't use TAB as the action key (no Ctrl-Tab) because
View.processKeyEvent consumes any KEY_PRESSED event
for TAB.

P.P.S. Lee Turner's SwitchBuffer served as a basic
template for building this plugin. Thanks.
Missing Run Last Macro from 4.2pre8
Submitted by Anonymous on Tuesday, 16 March, 2004 - 09:18
Hello

First I would like to say that JEdit is a wonderful editor and has features that really make the coding fun. I especially like the features that help me to reduce the necessity to manually type the same code again and let me concentrate to creativity.

But there is one thing that has bugging me for some time. I really liked the feature run last macro. It was great that I could choose macro from the menu then run it once and after that use keyboard shortcut to run it again and again When I upgraded to 4.2pre8 from 4.1 I discovered that this function had disappeared. I am a little confused - why to remove such useful functionality.

I also explored forums and mail list archives but could not find much about this. Is there a possibility to reimplement this functionality using macros - creating a macro that could access macro history, especially the last executed macro or any other way to reimplement this functionality?

with best regards,
Phade
switching from vim: is it worth it?
Submitted by Anonymous on Tuesday, 16 March, 2004 - 12:16
i have been using vim for just about a year now, and am quite happy with it. the best thing about it is that it allows you to do stuff fast, without having to muck about with the mouse. I'ts also got quite powerful regexes and macros that you can run.

if i switch to jedit, which is probably better from a programming point of view, will i still get these features? can i assign vim keys like hjkl for leftupdownright, dd for delete, etc?

thanks
Full file name with dir in window title
Submitted by Anonymous on Tuesday, 16 March, 2004 - 15:51
can anyone help with this? i need it to be used with some time tracking program and need full path of file in main window title ... help ..thanx Lukas Smiling
XSLT still gets transformation error
Submitted by Anonymous on Wednesday, 17 March, 2004 - 00:42
I've followed the instructions on moving the xalan, xercesImpl and xmlParserAPIs jar files, and adding the -D flag to the startup for my JEdit installation on Java 1.4.1_02 on RedHat Linux 8. I still get the transformation error about running with the old version of Xalan-Java. Is there something else that needs to be done? This worked fine when I ran JEdit with Java 1.3.1.
JEdit , Windows and 56.xx nvidia display drivers
Submitted by Lup on Wednesday, 17 March, 2004 - 01:45
I was using Jedit since a while with Windows, no major issue so far, but since i've installed 56.xx nvidia display drivers, when launching jEdit i have some display corruption.
Then i can use jEdit normally, but when i quit the program system becomes slow (menus are slow, windows draw slowly...)
I was using j2 beta 1.5, rolled back to 1.4.2_03, i still have the same problem, anyone else ? any workaround ?
the drivers seem to work perfectly well with other applications i use.
Embedding jEdit in other applications...
Submitted by Anonymous on Wednesday, 17 March, 2004 - 23:53
I am evaluating jEdit as a possible text editor for one of my applications. But I can't see any documentation on that. Could anyone point me to any earlier attempts and/or documentation that could help me.

I don't want to rewrite syntax colouring, undo/redo support, access to file system from scratch!
Subversion plugin
Submitted by Anonymous on Thursday, 18 March, 2004 - 08:24
Hi!

Are there any plans, interest in, or plugins underway already, to provide support for Subversion version control (http://subversion.tigris.org).

I'm about to have a toy around with making an interface using the existing SourceControl plugin (yet to see if this will be feasible). But since I'm going to need to relearn java (then the relevant jedit plugin api's), I thought I'd ask first. Eye-wink

JEdit is wonderful. I remember people making jokes about emacs users never leaving their editors, and now I'm becoming the butt of the same ones because of jedit. Thanks for the efforts so far.
jar not working out
Submitted by Anonymous on Thursday, 18 March, 2004 - 08:46
I'm currently trying to install jedit on a computer. I've done one installation on another computer and that worked out nice.

Anyway when I doubleclick on the jar file i.e. jedit41install.jar nothing happens. I've got j2sdk 1.4.2_03 installed so that isn't the problem. I've tried to execute the jar file manually with jawaw.exe aswell but is doesn't work either.

What am I doing wrong here?
File uploading problem
Submitted by cvicari on Thursday, 18 March, 2004 - 11:54
Hi, I uploaded a new macro I called Toggle Split, but that's not visible in the community downloads, while it's visible using the macro manager plugin. I also tried to update this file, but I could only add another macro with the same name. What should I do to correct these things? Have I missed something stupid?
I/O error = missing jar ?
Submitted by MetalCat on Thursday, 18 March, 2004 - 16:21
Hi ya,

I was install the spelling module and it timed out during the download, so I though I'd just try later as the server must be busy or something.

Next time I started jEdit ;
Conbsole
JEditCvs
SideKick
SQL
XML

didn't want to load because errorlist was missing.

Any ideas ? I'm trying to reinstall it now.
How to split lines in search/replace
Submitted by Java1Guy on Thursday, 18 March, 2004 - 18:05
I basically want to insert a new line -- or split lines at some string.
Eg: line 1 line 2
via search/replace change to:
line 1
line 2

I'm sure it's simple but i sure can't find it in the docs. (Tried putting \n in the replace text but the slash and n appeared in the result.)

Thanks, Mark
Losing GUI Focus while Searching-OS X Panther
Submitted by deaddowney on Thursday, 18 March, 2004 - 19:18
In using Jedit 4.2 pre9, when ever I do a search (not wrapped) and reach the end of the search, a dialog comes up saying that there are no more occurrences of the searched item and if I want to search from the beginning. Upon dismissing this dialog, Jedit loses focus and I'm pretty much stuffed and have to restart the app. Is anybody else seeing this problem?
scrennshot configs
Submitted by marius on Thursday, 18 March, 2004 - 21:36
hi,

it's the first time for me to post here, so hello everyone!

my question is if you can get somewhere the full configs of the setups shown in the screenshot section. me for example, i very like the layout contributed by Ray Russell Reese III.

cananyone help me?
thx

regards
marius
jEdit 4.2pre10 now available
Submitted by slava on Saturday, 20 March, 2004 - 07:12
jEdit 4.2pre10 is now available for download. This release features a large number of bug fixes, several new and updated macros, and improved documentation. jEdit 4.2final is getting closer, so report those bugs, and come say hi on irc.freenode.net #jedit with the IRC plugin! A full changelog is available.
User login
Browse archives
« March 2004 »
MoTuWeThFrSaSu
19
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