[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to define key binding for Shift-TAB in .infokey?
From: |
Gavin Smith |
Subject: |
Re: How to define key binding for Shift-TAB in .infokey? |
Date: |
Fri, 11 Sep 2020 16:34:21 +0100 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Fri, Sep 11, 2020 at 03:01:51PM +0800, Clark Wang wrote:
> On Fri, Sep 11, 2020 at 2:14 PM Gavin Smith <gavinsmith0123@gmail.com>
> wrote:
>
> > On Fri, Sep 11, 2020 at 3:21 AM Clark Wang <dearvoid@gmail.com> wrote:
> > >
> > > I'm using "info --vi-keys" and I have the following line in my .infokey:
> > >
> > > #info
> > > \e[z move-to-prev-xref # Shift-TAB
> > >
> > > On macOS (info 4.8) it works fine but on my Linux (info 6.5) it reported
> > "Unknow command (BackTab)" when I press Shift-TAB. On both systems I'm
> > using TERM=linux and both's "infocmp" outputs "kcbt=\E[Z" .
> >
> > There doesn't seem to be any way to override Shift-Tab (or BackTab) in
> > infokey, but fortunately it is bound to "move-to-prev-xref" by
> > default. This should work unless you have put "#stop" in the section
> > in infokey.
> >
>
> On my Linux, I temporarily removed ~/.infokey and tried "info --vi-keys"
> but still Shift-TAB did not work (the same error "Unknown command
> (BackTab)". I pressed h and found "move-to-prev-xref" was bound to "ESC
> TAB" and "M-TAB". "ESC TAB" did work for me.
I hadn't seen that you were using --vi-keys. I'd recommend putting all
the key bindings (from Info node '(info-stnd)infokey format') into
.infokey and not using the --vi-keys option.
The other thing to try is to specify "key-time=0" in the #var section of
.infokey. However, this did not make any difference when I tested it.
"Alt-Tab" would work as long as it is not intercepted by your window manager.