[kde-linux] kate plugins and external commands not working

Donatas G. dgvirtual at akl.lt
Fri May 5 12:37:36 UTC 2006


Bram Schoenmakers wrote:

>> In Kate Configuration section External tools added a script
>>
>> Label: SEBtoseb
>> Script: sed s/SEB/seb/g %URL
>> Executable: sed
>>
>> but it does not work. Am I doing something wrong?
> 
> You don't read the contents of the file and put the modified contents back. 
> Did you already check the html-tidy.sh script, it's a nice example of how it 
> should work. Get the contents with DCOP, run sed on it and put it back again 
> in Kate with DCOP.

Hey, right! I added -i option and the script does work:

sed -i "s/SEB/seb/g" %directory/%filename

Not what I expected though - the file itself changes, but not what is
displayed.

I will have to look at dcop interface....

Donatas




More information about the kde-linux mailing list