From 317bca1fd4cdc3fd4b61990a308526358a2fac7d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 15 Jan 2015 23:01:19 -0500 Subject: Added events for terminal suspend and resume. Suspend can be prevented by an error handler, described in a new FAQ entry. New `events.RESUME` replaces `events.FOCUS` for the terminal version. Utilize these events to disable/enable bracketed paste and mouse modes. --- FAQ.md | 62 ++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 24 deletions(-) (limited to 'FAQ.md') diff --git a/FAQ.md b/FAQ.md index 408dbedf..fddf8979 100644 --- a/FAQ.md +++ b/FAQ.md @@ -50,30 +50,6 @@ terminal version.) - - - -**Q:** -I'm trying to compile Textadept from one of the download packages, but get some -obscure errors in the `scintilla/term/`, `gtdialog/`, or `scintillua/` -directories. What happened? - -**A:** -Prior to Textadept 7.5, some of the dependencies Textadept downloads are the -latest archives in their respective version control repositories. Occasionally -there are compile-time incompatibilities with these "bleeding-edge" downloads. -The solution is to go to the appropriate repository, identify the last revision -whose date is before the release date of your Textadept version, and download -the archive for that revision. - -For example, if you have Textadept 7.1 and cannot build the terminal version due -to a file in the `scintilla/term/` directory, go to [scinterm hg][] and look for -the revision before 11 November 2013 (which happens to be [changeset 60][] from -23 October 2013), click on it, download the zip from the link near the top of -the page, and replace the problematic file. - -[scinterm hg]: http://foicica.com/hg/scinterm -[changeset 60]: http://foicica.com/hg/scinterm/rev/ea13ae30cfab - -- - - - **Q:** Why can't Textadept handle HUGE files very well? @@ -106,6 +82,20 @@ Please see the LuaDoc on [compile and run commands][]. - - - +**Q:** +In Linux, pressing `^Z` suspends Textadept instead of performing an "Undo" +action. How can I disable suspend and perform "Undo" instead? + +**A:** +Place the following in your `~/.textadept/init.lua` file: + + events.connect(events.SUSPEND, function() + buffer:undo() + return true + end, 1) + +- - - + **Q:** In Linux, middle-clicking in the curses version does not paste the primary selection and selecting text does copy to the primary selection. All other @@ -165,3 +155,27 @@ Your window manager is to blame. Textadept is not responsible for, and should never attempt to set its window position. - - - + +**Q:** +I'm trying to compile Textadept from one of the download packages, but get some +obscure errors in the `scintilla/term/`, `gtdialog/`, or `scintillua/` +directories. What happened? + +**A:** +Prior to Textadept 7.5, some of the dependencies Textadept downloads are the +latest archives in their respective version control repositories. Occasionally +there are compile-time incompatibilities with these "bleeding-edge" downloads. +The solution is to go to the appropriate repository, identify the last revision +whose date is before the release date of your Textadept version, and download +the archive for that revision. + +For example, if you have Textadept 7.1 and cannot build the terminal version due +to a file in the `scintilla/term/` directory, go to [scinterm hg][] and look for +the revision before 11 November 2013 (which happens to be [changeset 60][] from +23 October 2013), click on it, download the zip from the link near the top of +the page, and replace the problematic file. + +[scinterm hg]: http://foicica.com/hg/scinterm +[changeset 60]: http://foicica.com/hg/scinterm/rev/ea13ae30cfab + +- - - -- cgit v1.2.3