On Thu, 7 Apr 2005, G. Milde wrote:

> On  7.04.05, [EMAIL PROTECTED] wrote:
> > On Thu, 7 Apr 2005, G. Milde wrote:
> > > On  6.04.05, Alfredo Braunstein wrote:
> > > > Geoffrey Lloyd wrote:
> > > 
> > > > > ... is there a list of all the in built keyboard shortcuts for lyx.
> > > 
> > > The LyX Wiki has even a list of such lists at
> > > 
> > >    http://wiki.lyx.org/LyX/KeyboardShortcuts   # Group LyX instead of 
> > > Tips!
> > > 
> > > and a tcsh script to extract such a list from your bind files.
> 
> > (The idea was that it could be used to generate a nice list of the
> > keybindings for each new version of lyx - not that the keybindings
> > change that often though).
> 
> But such a script is nice to get a list of your customised keybindings
> too. 

True.. to be honest, I don't really remember why I wrote..

> For people (like me) without tcsh, I'll append a python script
> that parses the bind files recursively. The output is a plain ASCII
> list, but it also provides 2 functions 
>     where_is(lfun)
>     get_binding(key)
> to grep in the keybindings list for a specific keybinding.

I found the script, it's located here:
        http://wiki.lyx.org/Tools/LyxBindings

Maybe you can also take advantage of the lyx-template and use the same way 
to generate a PDF file? If I remember correctly, all the script did was 
generate a file (bindings.inc) that looks like this for instance

        http://www.md.kth.se/~chr/lyx/t/bindings.inc

Should be straight forward for your python script to do the same. Btw feel
free to modfiy the wiki page as you see fit. Either link to your script
from that page, or create a separate page and link to that page.

/Christian


-- 
Christian Ridderstr�m, +46-8-768 39 44               http://www.md.kth.se/~chr


Reply via email to