aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
AgeCommit message (Collapse)Author
2021-01-22`io.get_project_root()` accepts an optional flag for returning a submodule root.mitchell
This is for systems like git that have '.git' files (not directories) for submodules under a parent '.git' directory.
2021-01-22Added `textadept.run.test()` and `textadept.run.test_commands`.mitchell
This enables the running of project tests.
2021-01-22Compile, run, and build command functions can also return environment tables.mitchell
2020-12-19Ensure a bare `ui.find.focus()` call resets incremental and in files options.mitchell
2020-12-11Updated Go error patterns.mitchell
2020-11-30Updated LuaDoc.mitchell
2020-11-16Added `events.UNFOCUS` for when Textadept loses focus.mitchell
Do not emit this event when a dialog is active.
2020-11-10Added argument to `events.FIND_RESULT_FOUND`.mitchell
This fixes a bug introduced by r3029 when invoking search via a macro.
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-11-01Added optional mode parameter to `ui.command_entry.append_history()`.mitchell
This allows for arbitrary appending to history, not just for the current or most recent mode.
2020-10-27Updated LuaDoc.mitchell
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