Discussion:
Shortcuts for 'post' arguments
aparsloe
2014-04-26 00:50:00 UTC
Permalink
The Alt+A 1, etc. shortcuts for custom inset arguments are a real boon.
However, I note that a 'post' argument, following the main argument,
doesn't get a shortcut, which is a pity. Is this oversight or are there
technical reasons preventing the extension of shortcuts to 'post' arguments?

Andrew
Jürgen Spitzmüller
2014-04-26 08:15:05 UTC
Permalink
Post by aparsloe
The Alt+A 1, etc. shortcuts for custom inset arguments are a real boon.
However, I note that a 'post' argument, following the main argument,
doesn't get a shortcut, which is a pity. Is this oversight or are there
technical reasons preventing the extension of shortcuts to 'post' arguments?
It's just not implemented. You can create shortcuts via bindings to
"argument-insert post:1" etc. similar to the normal argument bindings in
menus.inc. Same for the 'item' argument.

Jürgen
Post by aparsloe
Andrew
aparsloe
2014-05-13 04:28:11 UTC
Permalink
Post by aparsloe
The Alt+A 1, etc. shortcuts for custom inset arguments are a real
boon. However, I note that a 'post' argument, following the main
argument, doesn't get a shortcut, which is a pity. Is this
oversight or are there technical reasons preventing the extension
of shortcuts to 'post' arguments?
It's just not implemented. You can create shortcuts via bindings to
"argument-insert post:1" etc. similar to the normal argument bindings
in menus.inc. Same for the 'item' argument.
Jürgen
Very belatedly, thank you. Of course you meant menus.bind (in the bind
folder in the LyX Resources folder). I have a custom inset with two post
arguments and have altered menus.bind by commenting out the first line
and adding the other two, then saving the changed file in my personal
LyX bind folder:

#\bind "M-a 9" "argument-insert 9"

\bind "M-a 0" "argument-insert post:1"
\bind "M-a 9" "argument-insert post:2"

The shortcuts are considerably more convenient than the mouse work
previously required.

Andrew

Continue reading on narkive:
Loading...