stuart macgregor wrote: > Where are the lyx commands described. Could someone please help. > It is probably obvious :-( but I have not found them so far. > > sampleclient.tcl is a nice example - but where do I find a complete > list of the commands (get-layout, get-xy ...) and their responses?
They aren't. This is a perenial bug bear. Th problem is that the lfuns are an ad-hoc collection and change continually. They certainly don't amount to a decent scripting language. The best I can do is suggest that you download LyXAction.C and have a look there. Unfortunately, it doesn't tell you which lfuns take an argument. Still, browse this and see what looks interesting to you. Then ask for more info. Find the pertinent copy of LyXAction.C here: http://tinyurl.com/znsl > I'm looking at using gvim to edit noweb scraps via the lyx server > interface. > > The task seems simple - there are a wealth of ways to tackle it - > both lyx and [g]vim have server interfaces. In fact the main task > will be [picking a nice simple, flexible and fast approach from > the plentiful alternatives available. Sure. But the FIRST task is ensuring that you can get data into LyX and data out of LyX. I THINK that you can already get data into LyX, but want you to check. I also THINK that you can't get the data you need out of LyX. I am more than willing to write the necessary lfun for you because I am thinking about a generic solution anyway. > I currently intend to do a gvim mode, using a startup .vim source to > customise vim menues and key bindings and adding some lyx interface > related functions. This will lock on to any lyx pipes and be able to > get load/save current or all or named etc scraps to/from vim buffers > and so forth. Sounds great. Alternatively, and perhaps more flexible, would be to hack server_monitor.c to handle communication with LyX and to request that LyX exports all scraps to a known file who's status you can monitor. If the file changes, then launch you editor (if it isn't already running. If it is, tell the user that the base file has changed.) Here "editor" could be configurable. Anyway, we're ahead of ourselves. Data in/out of LyX is the first step. -- Angus