Re: [code] [textadept] Textadept 9.4

From: Pascal <patatetom.att.gmail.com>
Date: Tue, 18 Jul 2017 11:55:40 +0200

hi Mitchell,

`textadept.file_types.extensions = {}` in `~/.textadept/init.lua` works
fine :-)

by default, textadept is single instance : how could I invert this without
the `-f` command line switch ?
I took a look in the `/usr/share/textadept/core/args.lua` script, in which
the function relative is registred, but the function is "nothing" :
M.register('-f', '--force', 0, function() end, 'Forces unique instance')
so, I don't understand :-(

thanks for your help, regards, lacsaP.

2017-07-15 15:23 GMT+02:00 Mitchell <m.att.foicica.com>:

> Hi Pascal,
>
> Sorry for the delayed response.
>
> On Tue, 11 Jul 2017, Pascal wrote:
>
> hi Mitchell,
>>
>> is there a quick/simple way to run textadept as "notepad for Windows" (eg.
>> without coloration, lexer, etc...) to quickly handle large files ? a
>> "special" init.lua alternate config file ?
>>
>
> You could probably set `textadept.file_types.extensions = {}` in your
> `~/.textadept/init.lua`. That would prevent any sort of file type -> lexer
> detection. You can also make this a command line parameter via
> `args.register()`[1].
>
> Cheers,
> Mitchell
>
> [1]: http://foicica.com/textadept/api.html#args.register
>

-- 
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 18 Jul 2017 - 05:55:40 EDT

This archive was generated by hypermail 2.2.0 : Tue 18 Jul 2017 - 06:50:40 EDT