aboutsummaryrefslogtreecommitdiff
path: root/init.lua
AgeCommit message (Collapse)Author
2022-03-17Fixed calling `view:set_theme()` from the command entry.mitchell
2022-03-11Resize line number margin on reset.mitchell
This reflects any font-size/theme changes made.
2022-02-15Updated to Scintilla 5.2.0.mitchell
2022-01-31Updated copyright year.mitchell
2021-12-29Allow the line number margin to shrink when zooming out.mitchell
It expands when zooming in but would not shrink when zooming back out.
2021-05-29Updated to Scintilla 5.0.3.mitchell
Updated themes to use new `view.element_color` and treat all colors as opaque if no alpha was given.
2021-04-13Updated to Scintilla 5.0.1 and latest Scintillua and Scinterm.mitchell
Some of the Scintilla API has changed, and by extension the Scintillua API.
2021-04-11Initial pass reformatting all code.mitchell
Use clang-format, LuaFormatter, and 100 character limit on lines.
2021-03-01Fixed new theme's overriding of default theme's colors.mitchell
This only happens on startup when recording initial buffer settings with the `lexer` module mimic.
2021-01-29Updated copyright information.mitchell
2020-12-15Removed temporary compatibility settings for 10.x.mitchell
2020-11-10Fill `keys` and `snippet` tables with language-specific tables on init.mitchell
This allows users and language modules to easily add bindings and snippets without stepping on each other.
2020-10-20Code cleanup.mitchell
Of note: * io.save_all_files() does not visit each buffer to save anymore. An unintended side-effect was checking for outside modification (but only if the file itself was modified), so outside changes will always be saved over now. * The menu clicked handler uses assert_type(), so the 'Unknown command' localization is no longer needed. * When printing to a new buffer type would split the view, use an existing split view when possible. * Prefer 'goto continue' construct in loops over nested 'if's. * Fixed clearing of ui.find.replace_entry_text on reset in the GUI version. * Fixed lack of statusbar updating when setting options like buffer EOL mode, indentation, and encoding. * Renamed internal new_snippet() to new() and put it in the snippet metatable.
2020-10-05Use CRLF line endings on Windows by default.mitchell
2020-10-05Resize line number margin in view zoom.mitchell
2020-10-02Handle startup errors more nicely.mitchell
This also prevents a crash on exit in some circumstances, due to mismatched metatables.
2020-09-29Updated copyright information.mitchell
2020-09-20Added option to disable temporary key shortcut compatibility checking.mitchell
The compatibility checker is not perfect, and it serves primarily to remind users to double-check their key shortcuts for Textadept 11.
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