jEdit Community - Resources for users of the jEdit Text Editor
Plugin or Macro?
Submitted by tj.rothwell on Wednesday, 9 July, 2008 - 18:22
I was wondering if there is a way to change the behavior when editing a file that was updated/modified outside the editor.

Instead of a notification to reload or ignore the change, could there be one that would allow the user to merge the two?

In order to do this, could it be done as a macro tying in jdiff? Or would you need a plugin to override the event on how to handle changed files?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Maybe ActionHooks, and a macro.
by elberry on Wed, 09/07/2008 - 19:50
You might be able to do this with a macro and the ActionHooks plugin.

You would definitely need the jDiff plugin installed as well.

As to the actual way of doing it. You might have to create a separate "temporary" buffer containing the local changes, and reload the file in the original buffer. Then use jDiff to compare the two.

I'm just not sure you can have two buffers open with the same path.

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
User login
Browse archives
« January 2018  
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
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   50947
Context Free Art (*.cfdg)   0.31   41170
JBuilder scheme   .001   16999
BBEdit scheme   1.0   16599
ColdFusion scheme   1.0   16584
R Edit Mode - extensive version   0.1   14866
Advanced HTML edit mode   1.0   14045
Matlab Edit Mode   1.0   13983
jEdit XP icons   1.0   13414
XP icons for jEdit   1.1   12438