aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
AgeCommit message (Collapse)Author
2021-06-12Fixed incorrect bitwise operation.mitchell
This consolidates changes from r3135 and r3149 and fixes an additional restore selection case.
2021-05-30Updated LuaDoc.mitchell
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-11Initial pass reformatting all code.mitchell
Use clang-format, LuaFormatter, and 100 character limit on lines.
2021-01-29Updated copyright information.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-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-11Updated LuaDoc.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-08-21Code cleanup.mitchell
2020-08-17Updated some documentation and use macOS instead of Mac OSX.mitchell
2020-08-03Updated LuaDoc.mitchell
2020-07-25Moved incremental find into Find & Replace Pane.mitchell
Added new `events.FIND_TEXT_CHANGED` to help facilitate this. "Whole word" and "Regex" are now supported in addition to "Match case". Also updated tests.
2020-07-16Minor LuaDoc updates and spelling corrections.mitchell
2020-07-03Updated LuaDoc noting that `view.MOD_*` is different on Mac.mitchell
2020-06-28Be more consistent with Command key variable name.mitchell
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-17Event handlers can now return any non-nil value.mitchell
2020-03-10Core code cleanup, reformat, refactoring, and bugfixes.mitchell
`events.FILE_CHANGED` was not emitting a filename. Added tests for key commands, keychains, and key modes.
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-26Small code cleanup.mitchell
2020-02-24Fixed skipping of next event handler after disconnecting the current one.mitchell
Also removed localization for undefined event name. It was confusing, and anyone connecting to or emitting events should be comfortable with the error message, as it's consistent with Lua's type error messages.
2020-02-24Added `_SCINTILLA.events` and use it for SCNotifications.mitchell
2019-12-31Updated copyright year.mitchell
2019-11-18Fixed event arguments for `events.AUTO_C_SELECTION_CHANGE`.mitchell
2019-11-13Make new arguments to `events.TAB_CLICKED` backwards-compatible.mitchell
2019-11-07Changed `events.TAB_CLICKED` to emit button clicked as well as modifier keys.mitchell
This allows users to close buffers on middle-click for example.
2019-06-01GTK+ was renamed to GTK recently.mitchell
2019-02-16Updated copyright year.mitchell
2018-09-10Added ability to save/restore persistent data during reset.mitchell
2018-03-24Updated to pre-release version of Scintilla 3.8.0.mitchell
2018-02-24Updated LuaDoc.mitchell
2018-01-25Updated copyright year.mitchell
2017-11-29Added `events.ZOOM`.mitchell
2016-12-31Updated copyright information.mitchell
2016-08-11Fixed caps lock key handling.mitchell
2016-07-24Added `events.TAB_CLICKED` event.mitchell
This allows for the user to override the default switch behavior (e.g. switch to an existing split view that already has the target buffer open). Thanks to Gabriel Dubatti.
2016-07-14Fixed bug in keeping track of event indices; core/events.luamitchell
As a result, `events.disconnect()` may disconnect the wrong event handler. Thanks to David Karell.
2016-06-25Small code and documentation cleanup.mitchell
2016-06-15Lots of small LuaDoc improvements (grammar mainly).mitchell
2016-04-16Small code cleanup.mitchell
2016-04-16`events.CHAR_ADDED` emits a character code, not a byte.mitchell
2016-04-02Code cleanup.mitchell
Do not use `ipairs()` and use more consistent variable names among other things.
2016-03-29No need to pack and unpack `...`; core/events.luamitchell
2015-12-31Updated copyright date.mitchell
2015-08-02Updated to Scintilla 3.6.0.mitchell
2015-04-15Allow undocumented `events.MODIFIED` to emit position and length.mitchell