Re: [code] [textadept] Textadept used as a "simple advanced viewer"

From: Robert Gieseke <rob.g.att.web.de>
Date: Tue, 27 Aug 2013 16:26:15 +0200

Am 8/27/13 4:13 PM, schrieb Pascal:
> This is where it gets stuck for me : """and open all documents (args or ctrl
> -o) in read-only mode"""

You could create an event in your viewer profile init.lua like
events.connect(events.FILE_OPENED, function()
   buffer.read_only = true
end)

It's an interesting idea to use Textadept like this (a long time ago I
used it similarly) and startup is fast

Cheers,
Robert

>
> 2013/8/27 Pascal <patatetom.att.gmail.com>
>
>> Note that I use TA 6.6 and that this (old) version does'nt have the "
>> properties.lua" facility.
>>
>> My idea is to create a "viewer" profile in which TA would start without menu
>> (--M.menu = require('textadept.menu'))
>> and open all documents (args or ctrl-o) in read-only mode.
>>
>> TaV (for textadeptviewer) will be a wrapper to TA called with the "viewer"
>> profile (--serhome)...
>>
>> Lacsap
>>
>>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 27 Aug 2013 - 10:26:15 EDT

This archive was generated by hypermail 2.2.0 : Wed 28 Aug 2013 - 06:25:34 EDT