- Subject: Re: [Jed-users-l] isearch_forward bound to ^S vs \e[53~
- From: Manfred Hanke <Manfred.Hanke@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 04 Jan 2014 11:29:28 +0100
Hi Parke,
the reason for this behavior is that jed has not yet left the first call
of `isearch_forward' when you press F32 the second time, i.e., the loop
of `isearch_dir(1)' (defined in isearch.sl) is still processing your
input, and not jed's key bindings.
The custom variable `Isearch_Forward_Char' allows to configure which
(single) key causes the "continue isearch_forward" behavior. It tries to
default to the same key bound to `isearch_forward', but it seems that
the current code can only handle Ctrl-sequences and nothing like \e[53~.
I'm not an expert with terminal sequences at all, but \e[53~ seems to
correspond to more than one key for the `getkey' function (which is used
inside the `isearch_dir'-loop), so you might not be able to "correct"
the value of `Isearch_Forward_Char' for your needs while using the
current code of isearch.sl.
Cheers,
Manfred
On 01/02/14 19:37, Parke wrote:
> Hi,
>
> When I bind ^S to isearch_forward, I can search forward repeatedly by
> pressing ^S multiple times.
>
> However, when I bind \e[53~ (which happens to be F32) to
> isearch_forward, I can only perform one isearch_forward, which finds
> the first match. Pressing F32 again causes the search string to be
> cleared. Pressing F32 repeatedly cycles between: "Isearch Forward",
> "Done", and "Search forward: [53~[53~[53~[53~[53~[53~[53~[53~[53~[53~"
> (with increasing numbers of "[53~"). At the same time, the cursor
> never moves to the next match.
>
> Is this because:
>
> 1) F32 starts with \e?
>
> 2) F32 is not listed in termcap/terminfo? (I have not confirmed that
> F32 is not listed, but I suspect it is not.)
>
> 3) Some other reason?
>
> Thanks!
>
> -Parke
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2014 date index]
[2014 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]