How to assign a key code to a local layout
Steve Litt
slitt at troubleshooters.com
Sun Aug 8 20:21:03 UTC 2021
Tobias Hilbricht said on Sun, 08 Aug 2021 19:48:21 +0200
>Am Sonntag, den 04.07.2021, 11:53 -0400 schrieb Richard Kimberly Heck:
>> On 7/4/21 9:50 AM, Tobias Hilbricht wrote:
>> > Dear readers of this list,
>> >
>> > I created a local layout (Document -> Settings -> Local layout)
>> > which I
>> > can invoke via the menu (Insert -> User defined insert -> Local
>> > insert)
>> > and which works as expected.
>> > How can I assign a key code to this local layout?
>>
>> Probably "flex-insert INSETNAME" is what you want. Just assign that
>> command to a key combination.
>>
>> Riki
>>
>>
>>
>Just in case somebody comes across this thread in quest of an answer to
>the question how to make the assigned key code appear together with the
>entry in the menu - here something I found out accidentally and which
>I did not find documented:
>
>If I type
>
>flex-insert "mycustominsert"
>
>- note the quotation marks - and assign a key code, then the key code
>appears in the menu Insert -> Custom insert -> mycustominsert.
If I understand the preceding several posts correctly, this can give me
a capability I've been wanting for years. If anybody has the code to
make a custom insert in a local layout file, could you please post it so
I can replicate your work? To me, it's not at all obvious how to do
this.
Thanks,
SteveT
Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
More information about the lyx-users
mailing list