On 9/10/19 2:29 PM, Ralph Boland wrote:
I am using Lyx 2.3.2 on Debian 10.
Apologies if my difficulties do not occur on Lyx 2.3.3.
In my Lyx document I have two Indexes.
For each I want a short-cut key for adding entries to each Index.
For the standard Index I successfully mapped F12 to insert-index.
However, Haven't been able to map F10 to my "Notation" index.
The LFuns file entry for index-insert is:
index-insert
Action Inserts Index entry.
Notion It automatically takes the word on the cursor position.
Syntax index-insert [<TYPE:Name>]
Params <TYPE:Name>: name of the index, if multiple indices are defined.
With an empty argument, the default index is selected.
Origin leeming, 3 Aug 2000
Reading the documentation I could not figure out what [<TYPE:Name>] meant.
I tried:
index-insert Notation
index-insert Notation:Notation "this is
the attempt I expected to work"
index-insert <Notation:Notation>
All three were accepted but when I type F10 I get:
Idx (unknown type!)
What have I done wrong?
Wish List Note: while I want my F12 key mapping to apply to all my Lyx
documents (which is what happens), I wanted F10 to be specific to
this document.
It would be nice if I could create my own .bind file and in my document settings
(or somewhere) be able to select for my own .bind file to be used.
If this functionality exists somewhere
in Lyx I couldn't find it.
Thanks for you interest in my post.
Ralph Boland
The answer to question about a custom bind file is simple. You can put
your customized bind file in ~/.lyx/bind. I normally use the cua bind
file, and in the past I have hacked it to add certain customizations and
stored the hacked copy as ~/.lyx/bind/cua.bind. Per the LyX
documentation, when two bind files with the same name are found (as in
this case), the one in the user's bind directory takes precedence over
the one in /usr/share/lyx/bind.
Not as well documented: At least as of version 2.3.3 (but I think this
was true in 2.3.2), if you customize mappings via Tools > Preferences...
> Editing > Shortcuts, and do not check "Apply to current session
only", those changes seem to be stored in a file (~/.lyx/bind/user.bind)
generated by LyX and automatically loaded whenever LyX starts. So the
tweaks I used to make in my hacked copy of cua.bind are now stored in
user.bind (and I use the standard cua.bind file).
To answer the notation index question, it would help to have a minimal
working example (containing samples of both indices and as little else
as possible).
Paul