diff options
author | 2016-06-27 22:38:36 -0400 | |
---|---|---|
committer | 2016-06-27 22:38:36 -0400 | |
commit | 9f4b4db46d1dc36066aa12ec6ae403c395f75652 (patch) | |
tree | 58c11a5c7d05d5ccf60a70d4c11045145f366283 /doc | |
parent | 935b112fe478f750955a78ea6e15ffece78bd3f4 (diff) | |
download | textadept-9f4b4db46d1dc36066aa12ec6ae403c395f75652.tar.gz textadept-9f4b4db46d1dc36066aa12ec6ae403c395f75652.zip |
Added note on scripting auto-save; doc/manual.md
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/manual.md b/doc/manual.md index ce558dd2..c0599986 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -1474,14 +1474,18 @@ the "Search -> Find" menu option (or key binding) start a search with the word under the caret already in the find & replace pane's search box? Create a Lua function that populates [`ui.find.find_entry_text`][] and [shows the pane][], and then re-assign the "Search -> Find" [menu action][]'s existing function to -the one you just created. "Textadept gives you complete control over the entire -application using Lua" is not an exaggeration! +the one you just created. Would you like to have Textadept auto-save files as +you switch between buffers? Connect the [`io.save_file()`][] function to the +[`events.BUFFER_BEFORE_SWITCH`][] event. "Textadept gives you complete control +over the entire application using Lua" is not an exaggeration! [`io.open_file()`]: api.html#io.open_file [`events.FILE_OPENED`]: api.html#events.FILE_OPENED [event]: api.html#events [`events.FIND`]: api.html#events.FIND [`ui.find.find_entry_text`]: api.html#ui.find.find_entry_text +[`io.save_file()`]: api.html#io.save_file +[`events.BUFFER_BEFORE_SWITCH`]: api.html#events.BUFFER_BEFORE_SWITCH [shows the pane]: api.html#ui.find.focus [menu action]: api.html#textadept.menu.menubar |