Re: [code][textadept]Ctrl-Z in curses mode

From: Mitchell <m.att.foicica.com>
Date: Sun, 4 Feb 2018 18:58:39 -0500 (EST)

Hi,

On Sun, 4 Feb 2018, Mitchell wrote:

> Hi,
>
> On Sun, 4 Feb 2018, Keresztes Barna wrote:
>
>> Hi,
>> I'm using Textadept 9.6 (Linux 64 bit) and I bumped in the following
>> strange
>> behavior: In ncurses mode, the undo/redo are mapped to cz and cy according
>> to
>> the run command window (as in GTK mode). However the undo is actually mz
>> (Alt-Z), and cz is mapped to an undocumented exit to shell feature (like in
>> Nano).
>> I actually like this feature, and it's good to have the same shortcut as
>> for
>> Nano, but I would prefer to keep cz and cy for undo/redo (for consistency);
>> maybe assign mz to this exit to shell function.
>> Textadept dissapearing when trying to undo is very strange...
>
> You can ignore suspend events and make Ctrl+Z undo by putting the following
> on your *~/.textadept/init.lua*:
>
> events.connect(events.SUSPEND, function()
> buffer:undo()
> return true -- prevent suspend
> end)

By the way, this is also in the FAQ: https://foicica.com/textadept/FAQ.html

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 04 Feb 2018 - 18:58:39 EST

This archive was generated by hypermail 2.2.0 : Mon 05 Feb 2018 - 06:28:36 EST