aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
AgeCommit message (Collapse)Author
2021-04-30Replaced `events.FILE_{BEFORE,AFTER}_RELOAD` with ↵mitchell
`events.BUFFER_{BEFORE,AFTER}_REPLACE_TEXT`. This allows more features to save/restore state when buffer contents are replaced (e.g. file reload, filter through, etc.)
2021-04-30When filtering through, do not replace buffer contents if nothing changed.mitchell
This will clear the redo stack, which can be unhelpful when formatting code on save, for example.
2021-04-16Added ability to specify find & replace pane entry font via ↵mitchell
`ui.find.entry_font`. Also use type checks when setting find & replace text and labels.
2021-04-14Attempt to restore view scroll state after `textadept.editing.filter_through()`.mitchell
Also prefer `view.first_visible_line =` rather than `view:scroll_lines()` since the latter is only needed when display lines are involved.
2021-04-14Fixed file extension conflicts.mitchell
Prefer: * ANTLR '.g' over Gap * ASM '.S' over R * ini '.inf' over Inform * ASP '.asa' over VB
2021-04-14Addressed some minor Luacheck issues.mitchell
Not all shadowing warnings need to be fixed.
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-12Fixed a bug where redoing a full-buffer change could jump to an unrelated state.mitchell
Do a simple position save instead of using the history mechanism.
2021-04-11Save/restore view state when undoing/redoing full-buffer changes.mitchell
For example external code formatting commands that replace buffer contents.
2021-04-11Initial pass reformatting all code.mitchell
Use clang-format, LuaFormatter, and 100 character limit on lines.
2021-03-11Do not mark GCC-style "note:" output as compile/run/build/test errors.mitchell
2021-02-15Fixed inability to replace found text with escapes like '\n' and '\t'.mitchell
2021-02-11Added support for TypeScript.mitchell
Requires latest Scintillua.
2021-01-29Updated copyright information.mitchell
2021-01-28Fixed navigating back through history from a print buffer.mitchell
2021-01-22Added `textadept.run.test()` and `textadept.run.test_commands`.mitchell
This enables the running of project tests.
2021-01-22Small code cleanup.mitchell
2021-01-22Compile, run, and build command functions can also return environment tables.mitchell
2021-01-12Added Xs support.mitchell
Requires latest Scintillua.
2021-01-12Added systemd support.mitchell
Requires latest Scintillua.
2021-01-12Added Spin support.mitchell
Requires latest Scintillua.
2021-01-12Added RouterOS support.mitchell
Requires latest Scintillua.
2021-01-12Added fstab support.mitchell
Requires latest Scintillua.
2021-01-12Added systemd-networkd support.mitchell
Requires latest Scintillua.
2021-01-12Added Zig support.mitchell
Requires latest Scintillua.
2021-01-11Added Reason support.mitchell
Requires latest Scintillua.
2021-01-11Added Pony support.mitchell
Requires latest Scintillua.
2021-01-11Added Meson support.mitchell
Requires latest Scintillua.
2021-01-11Added Julia support.mitchell
Requires latest Scintillua.
2021-01-11Added Fantom support.mitchell
Requires latest Scintillua.
2021-01-11Added Elm support.mitchell
Requires latest Scintillua.
2021-01-11Added Clojure support.mitchell
Requires latest Scintillua.
2021-01-08Fixed minor file extension issues.mitchell
Forth and F# had a clash, and pico8 was using the wrong lexer name.
2020-12-19Ensure a bare `ui.find.focus()` call resets incremental and in files options.mitchell
2020-12-15Save the current session prior to loading another one.mitchell
2020-12-11Updated Go error patterns.mitchell
2020-11-30Updated LuaDoc.mitchell
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-30Moved find occurrence highlighting and counting into an event handler.mitchell
2020-10-23Small code cleanup.mitchell
2020-10-22`textadept.editing.strip_trailing_spaces` should not apply to binary files.mitchell
2020-10-21Do not clear or perform find result highlighting in "Find in Files" buffer.mitchell
When manually searching inside this buffer, leave existing highlights alone.
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-17Fixed "Enclose as XML Tags" with multiple selections.mitchell
2020-10-17Added `textadept.run.set_arguments()`.mitchell
This replaces custom code in *modules/textadept/menu.lua*.
2020-10-13Moved `ui.command_entry.active` into C.mitchell
It's more reliable and is similar to `ui.find.active`.
2020-10-13Construct regex replacement pattern from previous commit just once.mitchell
2020-10-13Implement \U, \L, \u, and \l case transformations in regex replacements.mitchell