Andre Poenitz wrote:
>> Along those lines, how difficult would it be to embed an external
>> app to edit external files?
> 
> Don't know. Not easy to an extend where I can use LyX as 'vim'.
> emacs + preview-latex is closer in this area.
> 
>> I know that the old InsetFigure used to embed
>> a gs process.
>>
>> I'm thinking of nothing more complex than telling this app the size
>> and position of the window...
> 
> I am not sure this is really needed.

My original idea was to embed an arbitrary renderer for 
InsetExternal. Things like syntax-highlighted code snippets, but then 
I thought, why limit it to just rendering?

> One of the features I sorely miss is the   :'<,'>!foo  feature of
> vim that pipes the selection through some external filter (like
> 'sort') and replaces the selection with the output of the filter.
> 
> This would already help much.
> 
> During the last week I spend more time on one of my bigger .lyx
> files with vim than with LyX... no, I am not joking.
> 
> In theory, such a feature should be simple to add, in practice it
> probably isn't. The only format LyX can read and write is .lyx, and
> the probability to crash LyX's reading with a broken filter's output
> is almost 1...

try {
        ...
} catch(...) {
}

???

Let's take this over to the devel list...

... but I can't see why you couldn't embed vim. This is for 
InsetExternal and maybe for InsetERT, writing and reading from a temp 
file. 

-- 
Angus

Reply via email to