jEdit Community - Resources for users of the jEdit Text Editor
Move to text area from console
Submitted by ernest on Friday, 23 May, 2008 - 01:16
I have a macro that I use to save my current document to disk and then to the server on which I am required to launch builds. This all works fine. But when I do a save, the macro runs (running ssh) and the cursor ends up in the Console. How can I have the cursor jump back into the text area where I am working?

Also, the act of saving causes any errors in the Error List to be cleared. I can understand this given that Console does the error parsing, but is there some way I can tell Console not to clear the Error List?

Thanks!

Ernest
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
keep error list
by Robert Schwenn on Fri, 23/05/2008 - 20:10
I assume that Your macro runs a statement like runInSystemShell(view, command) which is intended to run a program and catch it's output for showing in console and parsing for errors. The errors are shown in the error list which is cleared before. And I suspect that there is no way to keep the older errors in the list when using runInSystemShell().

But if You don't want error parsing for ssh, You could run it without console: Runtime.getRuntime().exec(SystemCommand).

Robert
Focus to textarea
by Robert Schwenn on Fri, 23/05/2008 - 19:56
Here are 3 options:

1. Switch focus to textarea directly:
view.getTextArea().requestFocus();

2. Toggle visibility of console dockable:
jEdit.getAction("console-toggle").invoke(view);

3. close bottom dock area:
dockarea = wm.getBottomDockingArea();
if(dockarea.getCurrent() != null) {
dockarea.show(null);
view.getTextArea().requestFocus();
}

Robert
 
Thank you so much Robert! I
by ernest on Tue, 27/05/2008 - 19:43
Thank you so much Robert! I now have it all working very well.

Ernest
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