Re: [code] Re: Re: Re: [textadept] Changing drive in textredux

From: Robert Gieseke <rob.g.att.web.de>
Date: Mon, 28 Dec 2015 17:33:30 +0100

Am 28/12/15 um 12:57 schrieb Thorsten Kampe:
>>> Hm, "attempt to index a nil value (global 'textredux')"...
>>
>> this needs to go after
>>
>> local textredux = require('textredux')
>>
>> in `init.lua`.
>
> Yes, I've done that:
> ```
> -- MODULES --
> -- https://github.com/rgieseke/textredux
> events.connect(events.INITIALIZED,
> function()
> require('textredux').hijack()
> end)
>
> keys.c1 = function() textredux.fs.open_file("C:") end
> ```
>
> Still the same error...

The "events.INITIALIZED" approach is not necessary anymore, can you try:

local textredux = require 'textredux'

textredux.hijack()

keys.c1 = function() textredux.fs.open_file("C:") end

Cheers,
Robert

-- 
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 Mon 28 Dec 2015 - 11:33:30 EST

This archive was generated by hypermail 2.2.0 : Tue 29 Dec 2015 - 06:53:13 EST