Activate JEdit window when loading file
Submitted by Tuesday, 10 October, 2006 - 15:15
on
Hi!
When I start jedit with this command:
java -jar jedit.jar -reuseview filename.txt
(I'm using '-reuseview' to avoid that strange default behavior that a new jedit window opens with all the files opened so far plus the new one but the window previously used stays open, too.)
This way it is loaded in the existing jedit instance and no new window opens (very good), but the jedit window itself doesn't get activated. Which drives me mad, because I always have to select it with the mouse or alt-tab for half a minute until I find it. Is there any way to have that jedit window activated? What I've been thinking of is e.g. running jedit like this:
java -jar jedit.jar -run=On_Open_File.bsh -reuseview filename.txt
where On_Open_File.bsh would activate the window. I'm a complete beginner at BeanShell, so no idea about how to do that.
I'm using KDE on Linux, so a Linux-specific solution (activating the window from the command line or whatever) would do as well.
Thank you very much!
Agoston
P.S.: This select box ("Forum:") on my browser behaves a bit strangely, I wanted to select the "-Using jEdit" option, I hope I managed to.
When I start jedit with this command:
java -jar jedit.jar -reuseview filename.txt
(I'm using '-reuseview' to avoid that strange default behavior that a new jedit window opens with all the files opened so far plus the new one but the window previously used stays open, too.)
This way it is loaded in the existing jedit instance and no new window opens (very good), but the jedit window itself doesn't get activated. Which drives me mad, because I always have to select it with the mouse or alt-tab for half a minute until I find it. Is there any way to have that jedit window activated? What I've been thinking of is e.g. running jedit like this:
java -jar jedit.jar -run=On_Open_File.bsh -reuseview filename.txt
where On_Open_File.bsh would activate the window. I'm a complete beginner at BeanShell, so no idea about how to do that.
I'm using KDE on Linux, so a Linux-specific solution (activating the window from the command line or whatever) would do as well.
Thank you very much!
Agoston
P.S.: This select box ("Forum:") on my browser behaves a bit strangely, I wanted to select the "-Using jEdit" option, I hope I managed to.