aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
AgeCommit message (Collapse)Author
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-12Updated LuaDoc for `ui.command_entry.append_history()`.mitchell
Clarify that it's not normally needed.
2020-10-12Added `ui.command_entry.append_history()` for manually appending history.mitchell
Normally history is auto-appended by the default '\n' key handler, but some custom modes may have their own '\n' handlers and did not have a way to append history.
2020-10-11Updated LuaDoc.mitchell
2020-10-08Small LuaDoc update.mitchell
2020-10-08Added `textadept.history` module for recording and navigating position history.mitchell
2020-10-05Various manual and documentation updates.mitchell
2020-10-02Command entry also considers contents of `textadept` as globals.mitchell
Include buffer/view constants as well, which should have been there anyway.
2020-09-30Updated Lua autocompletion and documentation.mitchell
2020-09-29Updated copyright information.mitchell
2020-09-19Updated to Scintilla 4.4.5 and Scintillua 4.4.5-1.mitchell
2020-09-19Added `events.COMMAND_TEXT_CHANGED`.mitchell
This is analagous to `events.FIND_TEXT_CHANGED`.
2020-09-19Added `events.FILE_{BEFORE,AFTER}_RELOAD` and save/restore bookmarks.mitchell
Also moved buffer state save/restore into ui module.
2020-09-19Added `ui.update()` for unit tests.mitchell
2020-09-14Refresh generated documentation.mitchell
2020-09-14More small documentation updates.mitchell
2020-09-13Updated LuaDoc to avoid writing '{{'.mitchell
This confuses Jekyll's Liquid tag processing.
2020-09-13Lots of documentation updates.mitchell
Updated header id generation, anchors, links, and header levels. Added dedicated book page and support data. Removed extra module autocompletion and documentation from Lua module. Removed GPG signing and verification, as everything is built and distributed on GitHub. Removed all release links prior to 10.8 since there is no point in uploading the relevant files to GitHub.
2020-09-04Renamed doc/ to docs/ and removed bombay dependency.mitchell
Added some documentation infrastructure for eventual migration to a new build service. Use a simple Lua script for generating documentation offline.
2020-09-04Added support for building with Docker and dropped automated Linux i386 builds.mitchell
Also tweaked Makefile with basic git support for an eventual migration to a new build service.
2020-09-04Small code cleanup.mitchell
2020-08-23Document terminal color restrictions in Lua API, not the Manual.mitchell
2020-08-21Added `keys.KEYSYMS` representations to LuaDoc.mitchell
2020-08-17Small code cleanup.mitchell
2020-08-17Added `textadept.editing.auto_enclose` for auto-enclosing selected text.mitchell
2020-08-04Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.mitchell
2020-08-04Updated LuaDoc.mitchell
2020-08-03Updated to latest Scintilla hg to get `lexer.fold_consecutive_lines()`.mitchell
2020-07-28Updated Lua autocompletion and documentation.mitchell
2020-06-28Updated Lua autocompletion and documentation.mitchell
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-09Prefer `view.call_tip_*` instead of `buffer.call_tip_*`.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-04-01Reverted accidental commit.mitchell
2020-03-31Updated Lua autocompletion and documentation.mitchell
Filepaths have a "_HOME" prefix that is expected to be filled in by consumers (e.g. the experimental ctags module).
2020-03-30Fixed off-by-one issues with `buffer:get_cur_line()`.mitchell
2020-03-29Code reformatting.mitchell
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-16Language modules should assume `_G.snippets` exists.mitchell
2020-03-16Small code cleanup.mitchell
2020-03-14More code cleanup, refactoring, and reformatting.mitchell
2020-03-03Revert accidental check in of Lua autocompletion and documentation.mitchell
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-19Updated tags generator to include filename and ex_cmd ctags fields.mitchell
This enables proper ctags navigation.
2020-02-19Allow Textadept API completions in special Lua buffers like a Lua REPL.mitchell
2020-02-18Added snippet trigger word completion.mitchell
Also refactored snippet lookup, added options to Lua and C modules to include snippet triggers in autocompletion lists, swapped snippet keybindings, and fixed a bug recognizing lexer-specific snippet files as global.
2020-02-17Treat `textadept.editing.api_files` as already containing empty per-lexer lists.mitchell
The language modules should not overwrite them, as user scripts may define them in on init.