aboutsummaryrefslogtreecommitdiff
path: root/init.lua
AgeCommit message (Collapse)Author
2020-09-13Switch back to Scintilla default (4.x), Scinterm, and Scintillua.mitchell
Scintilla LongTerm3 maintenance is ending with upcoming Scintilla 5. Textadept now requires a C++17 compiler. Also updated Docker image.
2020-09-09Fixed incorrect compatibility notification for CSS key prefix.mitchell
2020-09-07Reverted find results indicator color change.mitchell
Background highlighting provides more contrast.
2020-08-27Updated `ui.find.FIND_INDIC` style.mitchell
2020-08-21Code cleanup.mitchell
2020-08-17Updated some documentation and use macOS instead of Mac OSX.mitchell
2020-08-03Updated to latest Scintilla hg to get `lexer.fold_consecutive_lines()`.mitchell
2020-08-01Emit more helpful initialization error messages in buffer/view settings.mitchell
2020-07-29Fixed _G.keys issues introduced by compatibility code.mitchell
Metatables were not being preserved.
2020-07-27Updated to Scintilla 3.21.0.mitchell
2020-07-25Moved word highlighting back into editing module and disable by default.mitchell
Also fixed `HIGHLIGHT_SELECTED` behavior with non-word selections.
2020-07-18Updated to latest Scintilla for new `lexer.fold*` API.mitchell
This replaces the need for `view.property['fold*'] = ...`
2020-07-13Make `lexer` global by default when it's available.mitchell
2020-07-13Auto-highlight all occurrences of selected words and find results.mitchell
This supercedes `textadept.editing.highlight_word()`, which has been removed. Changed the color of word highlights in themes.
2020-07-12Be more consistent with "key sequences", "key commands", and "key bindings".mitchell
Sequences are key strings, commands are Lua functions, and bindings are commands assigned to sequences.
2020-07-08Auto-convert '#RRGGBB' format theme colors to 0xBBGGRR number format.mitchell
This allows for use of colors directly in view functions.
2020-07-07Added `lexer.colors` and `lexer.styles` and updated themes to utilize them.mitchell
This allows for a more Lua table-oriented approach to defining and using colors and styles, instead of manually manipulating Scintilla property strings. Themes are still backwards compatible, as the underlying mechanisms are still in place.
2020-06-30Ignore language name in language-specific keys when warning about compatibility.mitchell
2020-06-29Enabled compatibility message for old key modifiers.mitchell
2020-06-28Changed keybinding modifier keys.mitchell
They had always been a bit counter-intuitive.
2020-06-10Renamed some buffer/view fields to use American English instead of Australian.mitchell
This requires theme updates, primarily due to colour -> color.
2020-06-10Replaced `lfs.dir_foreach()` with `lfs.walk()` generator.mitchell
2020-06-08Prefer `view.property*` instead of `buffer.property*`.mitchell
2020-06-05Renamed `buffer:set_theme()` to `view:set_theme()` and fixed a bug with splits.mitchell
Also improved separate themes-per-view functionality.
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()`.