Re: Plans for the next version?

From: Rob <ro....at.web.de>
Date: Sat, 20 Feb 2010 03:06:18 -0800 (PST)

On Feb 19, 7:49 pm, mitchell <mforal.n....at.gmail.com> wrote:
> > Are there any plans for the next version of Textadept?
>
> Yes. I have been out of town this past week and have lots of school
> work to do, but I'm trying as best I can to get ta updated to
> Scintilla 2.x. I'm aiming for 2.1 on March 1.

Great news! Let us know, as Brian wrote, if there is anything we can
help with!

>
> > 5.   A specification for the proper place to put user-created scripts.
>
> ~/.textadept

I think I figured out why it didn't work for me:
Textadept is not looking for modules in ~/.textadept
I added the second line in the following with _USERHOME to init.lua:

local mpath = _HOME..'/modules/?.lua;'.._HOME..'/modules/?/init.lua'
local mpath = mpath..';'.._USERHOME..'/modules/?.lua;'.._USERHOME..'/
modules/?/init.lua'
package.path = mpath..';'..package.path

Then, there is something wrong with a ( and ''''' in core/ext/pm/
modules_browser.lua:
In local COMMANDS = [[
it should be something like
 m = { textadept.io.open,
      textadept.iconv(_USERHOME..'/modules/$1/init.lua',
                            'UTF-8', _CHARSET) },

Further in core/init.lua there is a trailing slash in the _USERHOME
definition:
_USERHOME = os.getenv(not WIN32 and 'HOME' or
'USERPROFILE')..'/.textadept/'
If I remove the last slash the path in the Modules browser looks
correct (otherwise it's .textadept//modules...).
However this doesn't seem to make a difference for loading of the
module.

The Luadoc states that all modules should go in the modules/ Textadept
directory. So this is what everyone did, I assume.
I think everything added by the user should be put in ~/.textadept.

- Robert
Received on Sat 20 Feb 2010 - 06:06:18 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:39:11 EST