Re: Plans for the next version?

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

On Feb 19, 7:59 pm, mitchell <mforal.n....at.gmail.com> wrote:
> Hi,
>
> > I think it would be quite important to have a clear way for changing
> > things in Textadept, setting changed key commands, menu settings etc.
> > from within your init.lua.
>
> In your ~/.textadept/init.lua file, simply 'require' your key
> commands, menu settings, etc. You can see in textadept's init.lua, it
> checks for your ~/.textadept/init.lua; if it exists, everything
> 'require'd in the "if not loaded_modules" block is not loaded.
>
> > Maybe the theme selection could be included there as well.
>
> The theme cannot be set in ~/.textadept/init.lua due to how ta loads
> (scintilla exists before ~/.textadept/init.lua is read). A Lua
> function could be added to set the theme, but that just adds
> complexity. A ~/.textadept/theme file is appropriate I think.
>
> > And some
> > way not to have a hardcoded path to a theme if it's not in the default
> > themes folder.
>
> Suggestions? I don't understand how this would be helpful.
>
On Feb 19, 7:59 pm, mitchell <mforal.n....at.gmail.com> wrote:
> Hi,
>
> > I think it would be quite important to have a clear way for changing
> > things in Textadept, setting changed key commands, menu settings etc.
> > from within your init.lua.
>
> In your ~/.textadept/init.lua file, simply 'require' your key
> commands, menu settings, etc. You can see in textadept's init.lua, it
> checks for your ~/.textadept/init.lua; if it exists, everything
> 'require'd in the "if not loaded_modules" block is not loaded.
>
> > Maybe the theme selection could be included there as well.
>
> The theme cannot be set in ~/.textadept/init.lua due to how ta loads
> (scintilla exists before ~/.textadept/init.lua is read). A Lua
> function could be added to set the theme, but that just adds
> complexity. A ~/.textadept/theme file is appropriate I think.
> > And some
> > way not to have a hardcoded path to a theme if it's not in the default
> > themes folder.
>
> Suggestions? I don't understand how this would be helpful.
>
I think user contributed themes should be placed in ~/.textadept/
themes and
in the file "theme" only giving the name of the theme should be
necessary.
So Textadept should look in the default themes folder and in
~/.textadept/themes.
This would be better for portability.

- Robert
Received on Sat 20 Feb 2010 - 06:11:58 EST

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