jEdit Community - Resources for users of the jEdit Text Editor
jDiff: any way to invoke by cli (passing args)
Submitted by jdlx on Sunday, 8 July, 2012 - 12:15
Hi,

i'd like to use jDiff@jEdit as a external Diff tool for my GIT client app.. the question i have:
Can i invoke/start jEdit by passing the two filepathes and some arg that makes jedit diff those right away?
Something along the line:

$ /Applications/jEdit.app/Contents/MacOS/jedit -diff "$1" "$2"

thx,
Jan
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
options
by Robert Schwenn on Mon, 09/07/2012 - 20:01
Hi,

I don't think that jDiff plugin could be invoked this way. But You could ask at the jEdit Developers Mailing List where the developers are and/or file a feature request at SourceForge .

If You would be willing to code some Java, another option would be that You let the GIT client app create a Beanshell macro, that would do the trick. Then You could invoke jEdit with the command line option "-run=path_to_macro" and jEdit will run the macro.

Robert
 
Hi Robert, thx for your re
by jdlx on Mon, 30/07/2012 - 12:02
Hi Robert,

thx for your reply and excuse me getting back so late.. (i don't get any notifications from this board).

I allready thought so, bummer. Unfortunately i can't hop too many loops to get this workin.. i actually switched from jEdit (jehova!Eye-wink to Sublimetext2, and the sole reason i keep (and still like) jEdit around is for it's in-app diff. Java anyway has never been an option, and beanshell-wise i'm also a clueless cop&paste rookie. Eye-wink

Maybe i'll give the dev list a shot..

cheers,
Jan
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