jEdit Community - Resources for users of the jEdit Text Editor
Activate JEdit window when loading file
Submitted by agoston on Tuesday, 10 October, 2006 - 15:15
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.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293