jEdit Community - Resources for users of the jEdit Text Editor
Mac OSX command line integration
Submitted by Anonymous on Sunday, 25 April, 2004 - 04:38
How to launch jEdit from the OSX command line? Is there a better way than executing /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub ? I have the following function in my .bash_profile, but it doesn't pick up the path to any file I pass to it, e.g. if I type 'jedit .bash_profile' from my home directory, jEdit will try to create a new file in /Applications/JEdit 4.2pre11/. There must be a way to get this to work? I searched here and via google and was unable to find anything on the subject. Thanks for any help, and apologies for my poor bash skillz.

Here's the bash function:

jedit () { /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub -background "$@" ; }

Using OSX 10.3.3, jEdit 4.2pre11.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
jedit shell script
by raster on Tue, 18/05/2004 - 20:49
When I installed jEdit using the Mac OS X package, it put a shell script named jedit in ~/bin

This is the content of the file:

#!/bin/sh
# Java heap size, in megabytes
JAVA_HEAP_SIZE=32
DEFAULT_JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home"
if [ "$JAVA_HOME" = "" ]; then
JAVA_HOME="$DEFAULT_JAVA_HOME"
fi
exec "$JAVA_HOME/bin/java" -mx${JAVA_HEAP_SIZE}m ${JEDIT} -jar "/Applications/jEdit/jEdit.app/Contents/Resourc
es/Java/jedit.jar" $@
Mac OSX command line integration
by Anonymous on Wed, 28/04/2004 - 00:23
I used the Java-based installer version 4.2pre11 to make the command line work. Now I can type jedit in the command line to lunch it. I also added these 2 lines to .bash_profile
EDITOR='/usr/local/bin/jedit' and CVSEDITOR='/usr/local/bin/jedit'. Now when I invoke the editor from clisp, for example, it automatically opens jedit.

One thing, I kept getting an error with the Mac OSX plugging when jedit started so I removed it. Now all the menu item are part of the jedit screen and not in the menu bar like regular Mac apps.

Regards,
Juan
open -a
by Anonymous on Sun, 25/04/2004 - 23:39
"open -a jEdit /path/file" once did this for me. Now on 10.3.3 with jEdit 4.2pre9 it seems to be broken, but maybe it works for you.
Try to google for "OSX terminal tutorial" and/or take a look at www.macosxhints.com

have fun, cu andreas
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