aboutsummaryrefslogtreecommitdiffhomepage
path: root/init.lua
Commit message (Collapse)AuthorAge
...
* Updated copyright notice to include the year 2008.Gravatar mitchell2008-03-03
|
* Added textadept.reset() function for resetting the Lua state.Gravatar mitchell2008-02-03
| | | | | | | | | | | | | The l_init function takes an additional reinit boolean as a result. When resetting, the package.loaded and _G tables are cleared. Since the textadept.buffers, textadept.views, and arg tables were originally in _G, they were moved to the LUA_REGISTRYINDEX table so as not to be lost. They are still available in _G, but as links to the tables in LUA_REGISTRYINDEX. textadept.reset() sets a global RESETTING boolean to true when init.lua is re-run so things like reloading a session or reloading files from the command line do not occur. The boolean is set to nil afterwards.
* Fixed package precedence bug; init.luaGravatar mitchell2007-12-03
| | | | | | | | When Textadept opens a file that is associated with a module, it loads that module to get filetype-specific functionality. When operating in a directory like lexers/ and opening a lexer file, Textadept wants to open the Lua module but mistakenly thinks that the Lua lexer (lua.lua) is the module. This fix gives the module path precedence over the package path.
* Fixed command line parameters bug; init.luaGravatar mitchell2007-12-02
| | | | | | | When files are passed by the command line, they are assumed to be relative to Textadept's path. Instead, check if the file has a leading '~/' or '/' indicating an absolute path. If so, do not treat it that way. Otherwise treat it as relative.
* Moved key command manager to core.Gravatar mitchell2007-10-07
|
* Updated documentation.Gravatar mitchell2007-09-24
|
* Fixed bug with opening files via command line arguments; init.luaGravatar mitchell2007-08-06
| | | | | | When the path to the Textadept executable is not specified, base_dir is nil. Attempting to concat it with a filename throws an error, so base_dir defaults to the empty string.
* Initial import of Textadept Lua init script.Gravatar mitchell2007-08-06