Any comments on the following proposal? I propose an LFUN to allow the lyx file to be edited or processed as text without having to leave the LyX GUI. This could be essentially the same as a "export, edit, import", but with an automatically selected temporary file rather than dialogs requesting a file to import. LyX 1.5.0 should reopen the LyX file at the previous screen position.
Examples of use edit-as-text # Edit current lyx file using default text editor edit-as-text kwrite $$f #Edit the current lyx file with kwrite edit-as-text mathreplace.py $$f "e" "\epsilon" #Use a hypothetical python script to replace all occurrences of e I would like to be able to construct GUII dialog boxes from within an LFUN command-sequence or script so that I can create a "math replace" dialog box without having to modify the lyx binary. Is this possible? Pseudo-code: edit-as-text($1, $2, ....) Disable buffer->compressed $$f = TMP_FILE Save_As $$f exec $* If (valid_LyX_File ($$f)) Import $$f If was_compressed Enable buffer->compressed Return -- John C. McCabe-Dansted PhD Student University of Western Australia