aboutsummaryrefslogtreecommitdiff
path: root/init.lua
AgeCommit message (Collapse)Author
2020-05-25Allow views to be used as buffers and update API.mitchell
This allows for a superficial separation of buffer- and view-specific Scintilla functionality. buffers and views can now be used interchangeably for the most part, and the APIs are guidance, not hard requirements. User scripts do not require any modification and will continue to function normally.
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-16Moved individual buffer functions in `io` into `buffer`.mitchell
e.g. `io.reload_buffer()` was renamed `buffer:reload()`.
2020-03-16Fixed crash introduced in previous commit.mitchell
The assumption was that `buffer.set_lexer` is only unavailable for the first buffer, which has `buffer:private_lexer_call(SETLEXERLANGUAGE, ...)` called in the `events.BUFFER_NEW` handler. However, `reset()` throws a wrench into everything and a buffer can end up without a lexer.
2020-03-14More code cleanup, refactoring, and reformatting.mitchell
2020-03-14Removed *~/.textadept/?.{lua,so}* from `package.path`.mitchell
This is not used internally and not documented. All modules should be in *~/.textadept/modules*.
2020-03-09Fixed bug in previous commit that always loaded default lexers before user ones.mitchell
2020-03-07Ask LPeg lexer which lexers are available instead of searching for them.mitchell
2020-02-22Separated `_G.snippets` from `textadept.snippets`.mitchell
Removed leading '_' from snippet methods, but kept compatibility for now.
2019-12-31Updated copyright year.mitchell
2019-03-27Also grow line number margin in new views as necessary.mitchell
2019-03-27Line number margin grows for large files as needed.mitchell
2018-10-13Fixed regression of Retina support on OSX.mitchell
2018-07-31Removed Textadept 10.0 compatibility notices.mitchell
These were merely for aid in migrating from a previous version to 10.0.
2018-06-16Fixed `buffer:set_theme()` for lexers that have their own styles.mitchell
The default lexer styles were being refreshed, but not any custom styles defined by the lexer.
2018-06-02Enable pasting into multiple selections by default.mitchell
2018-05-01Fixed unset lexer bug upon splitting a newly created buffer.mitchell
2018-04-25Removed LuaJIT version of Textadept.mitchell
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
2018-04-07Fixed stale styles on split view.mitchell
2018-03-25Removed call restriction on `buffer.set_theme()` and added initial `buffer` arg.mitchell
2018-03-12Start using Scintilla's LongTerm3, which now includes Scintillua and Scinterm.mitchell
Since LongTerm3 requires a C++11 compiler, GCC 4.9+ is required. Since C++11 includes regex capability, drop TRE dependency.
2018-01-25Updated copyright year.mitchell
2018-01-17Updated `init.lua` to include new `fold.compact` property setting.mitchell
Requires Scintillua r474 (changeset e0da6f7984c6).
2018-01-04Print compatibility messages instead of showing a dialog box.mitchell
2017-12-31Added temporary compatibility notices when upgrading to Textadept 10.mitchell
These notices are only for changes that are likely to affect users like theme settings and ~/textadept/properties.lua. These notices should be removed later.
2017-11-12Buffer settings on startup apply to subsequent buffers.mitchell
As a result, no need for a *properties.lua* file anymore. Also, renamed `ui.set_theme()` to `buffer.set_theme()`.
2016-12-31Updated copyright information.mitchell
2015-12-31Updated copyright date.mitchell
2014-12-31Updated copyright year.mitchell
2014-05-10Add "_HOME/modules" to `package.cpath`; init.luamitchell
2014-01-12Updated copyright information.mitchell
2013-10-02Show user-init error messages in a dialog to prevent crashing; init.luamitchell
2013-09-06Fixed bug in processing command line options introduced in r1546.mitchell
2013-08-31Allow user scripts to handle `BUFFER_NEW` and `VIEW_NEW` events on startup.mitchell
A side effect is more efficient event emission during startup.
2013-08-26Renamed `_M.textadept` to `textadept`; `_M` is for language modules only now.mitchell
2013-08-26Renamed `gui` to `ui` since it's more applicable.mitchell
2013-06-24Removed `_G.RESETTING`; test for `arg` instead.mitchell
2013-05-15`_M.textadept = require('textadept')` in user init is superfluous.mitchell
The module was being loaded by default anyway. Besides, the user's modules/textadept/init.lua controls which parts are loaded.
2013-04-29More code cleanup.mitchell
"local buffer = buffer" and similar optimizations are not needed since lexing the buffer is much more expensive and reaction time is limited by how fast the keyboard can submit key presses.
2013-01-20Updated copyright date.mitchell
2012-09-22Fixes to Lua paths.mitchell
Do not look in the current working directory for modules. Look in _USERHOME for shared libraries.
2012-07-21Lua code cleanup and API changes.mitchell
2012-04-10Support for single-instance on Linux and BSD with GLib 2.28.mitchell
Also added documentation on running with LuaJIT and require GTK+ 2.18 now.
2012-03-07Updated contact email address.mitchell
2012-01-06Updated copyright information.mitchell
2012-01-05Code cleanup.mitchell
2010-12-28Updated copyright information.mitchell
2010-11-23Code cleanup.mitchell
Also modified the editing module's enclose() and select_enclosed() functions.
2010-06-17Added dynamic command line argument handling.mitchell
2010-06-16Code and documentation cleanup.mitchell