Re: [code] [textadept] Key Modes

From: Mitchell <m.att.foicica.com>
Date: Sun, 14 Apr 2013 23:49:46 -0400 (EDT)

On Sat, 13 Apr 2013, Mitchell wrote:

> Pete,
>
> On Fri, 12 Apr 2013, Pete Kazmier wrote:
>
>> Thank you. This will make my emacs-like incremental search much easier to
>> configure now. Before, I had to essentially override the entire find module
>> to add two key bindings! With the new map, this is trivial.
>>
>> Quick question: what's the best way to bind '\n' in incremental search to
>> simply end the search? I tried enter_mode, but it requires two newlines to
>> exit. I tried also tried a finish_mode. In both cases, I have to press
>> newline twice. Oddly enough, escape works on the first try. I'm using the
>> curses version.
>
> Did you recompile your textadept-curses? I was able to pass an empty function
> to `finish_mode` bound to '\n' to close an incremental find.
>
> I'll commit a change that allows *f* to be optional in `finish_mode` so you
> don't have to pass an empty function.
>
> Cheers,
> Mitchell
>

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 14 Apr 2013 - 23:49:46 EDT

This archive was generated by hypermail 2.2.0 : Mon 15 Apr 2013 - 06:49:54 EDT