From 0791cac97ee689195e593cfca89c0b63fb721479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 22 Nov 2016 00:15:32 +0100 Subject: vis-lua: introduce pre-save hook The first argument is the file object while the second argument denotes the full path to which it will be written. Path might be `nil` if the file is going to be written to stdout. The Lua function is expected to return a boolean value indicating whether the write operation should proceed or be aborted. --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index 608e1c5..f8d7a99 100644 --- a/README.md +++ b/README.md @@ -590,6 +590,7 @@ At this time there exists no API stability guarantees. - `start()` - `quit()` - `file_open(file)` + - `file_save_pre(file, path)` triggered *before* an attempted write to `path` boolean return value determines whether write will be proceeded - `file_save_post(file, path)` triggered *after* a successfull write to `path` - `file_close(file)` - `win_open(win)` -- cgit v1.2.3