aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
AgeCommit message (Collapse)Author
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
2015-03-09Stop documenting hotspots since new indicator attributes supplant hotspots.mitchell
Scintilla 3.5.4 added "buffer.indic_hover_style" and "buffer.indic_hover_fore", effectively replacing hotspot styles and colors. Lexers were not using hotspot styles anyway -- hotspots could only be used by manually styling text.
2015-01-22Small code and documentation cleanup.mitchell
2015-01-20Updated to Scintilla 3.5.3.mitchell
2015-01-15Added events for terminal suspend and resume.mitchell
Suspend can be prevented by an error handler, described in a new FAQ entry. New `events.RESUME` replaces `events.FOCUS` for the terminal version. Utilize these events to disable/enable bracketed paste and mouse modes.
2015-01-12Emit an `events.FOCUS` event after resuming from a suspended state.mitchell
2014-12-31Updated copyright year.mitchell
2014-11-26Allow connection to `events.QUIT` without requiring index of 1.mitchell
2014-10-25Improvements to terminal mouse handling.mitchell
Emit events for unhandled mouse events and connect to such events in order to focus and resize views. Patch libtermkey with new Win32 PDCurses driver for unified key/mouse input. Update CDK patch to always use libtermkey and to ignore mouse events. Requires Scinterm r97 (changeset 8d1a625c9b4d). Thanks to Chris Emerson for proof of concept code that handles mouse events and for the code that focuses and resizes views.
2014-10-18Handle unknown CSI events and bracketed pasted in the terminal version.mitchell
For bracketed paste, turn off auto-pair and auto-indent.
2014-06-30Condensed manual and API documentation into single files.mitchell
2014-06-20Added `event.FOCUS` for when Textadept's window receives focus.mitchell
2014-06-07Added parameter to `events.UPDATE_UI`.mitchell
2014-03-01Use `assert(...)` as a shortcut for `if not ... then error() end`.mitchell
2014-01-12Updated copyright information.mitchell
2013-12-12More LuaDoc updates.mitchell