summaryrefslogtreecommitdiff
path: root/save.pl
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-01-22 21:48:37 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-01-22 21:48:37 +0100
commit25a588bc2ca3c608e5c93c80baf2996f0d9c741f (patch)
treeb78cf0330dc6303d112f41263ccaa121be6f138d /save.pl
parent6020c9326843ee232a4fea3b2be13f9f3516abbb (diff)
downloadsave-25a588bc2ca3c608e5c93c80baf2996f0d9c741f.tar.gz
Use improved editor.
Diffstat (limited to 'save.pl')
-rw-r--r--save.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/save.pl b/save.pl
index 517193e..7eaec84 100644
--- a/save.pl
+++ b/save.pl
@@ -1,6 +1,8 @@
:- consult(pce_file_search_path).
:- consult(library(pce)).
:- consult(library(process)).
+:- consult(ieditor).
+:- ieditor_gesture_override.
:- op(920,fy, *).
*_.
@@ -16,7 +18,7 @@ unlink(D) :->
:- pce_global(@dialog, new(save_dialog('Save'))).
:- pce_global(@files, new(chain)).
:- pce_global(@commits, new(chain)).
-:- pce_global(@editor, new(editor)).
+:- pce_global(@editor, new(ieditor)).
:- pce_global(@file_browser, new(browser)).
:- pce_global(@commit_browser, new(browser)).
:- pce_global(@save_button,
@@ -59,6 +61,7 @@ added(_) :-
send(@dialog, open).
refresh :-
+ shell("git add ."),
send(@files, clear),
status(@files),
send(@file_browser, members(@files)),