Re: Plans for the next version?

From: mitchell <mforal.n....at.gmail.com>
Date: Sat, 20 Feb 2010 07:24:04 -0800 (PST)

Hi,

> > > 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

Okay this is good. I will commit this shortly.

> 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) },

Thanks. I think that was the result of a silly 'sed' use :)

> 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.

Cosmetic difference, but fixed.

> 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.

LuaDoc edited for next release.

Thanks!
Mitchell

>
> - Robert
Received on Sat 20 Feb 2010 - 10:24:04 EST

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