aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
AgeCommit message (Collapse)Author
2016-06-16Changed arguments to `ui.goto_view()` and `view:goto_buffer()`.mitchell
They can accept either objects or relative numbers now. They do not accept absolute indices anymore.
2016-04-09More efficient window refreshing in the terminal version; src/textadept.cmitchell
Requires Scinterm r150 (changeset ca37264a865c).
2016-04-05Improved efficiency of word autocompletion from all buffers.mitchell
Also fixed a bug that reset some non-focused buffer properties.
2016-03-26Support UTF-8 Lua pattern matching.mitchell
Makes use of an external luautf8 library, but only a subset of it.
2016-03-22Only show the menubar if there are menus; src/textadept.cmitchell
2016-02-17Fixed potential buffer overflow; src/textadept.cmitchell
Thanks to Markus F.X.J. Oberhumer.
2016-02-03Ensure Win32 single instance thread is terminated on exit; src/textadept.cmitchell
2016-01-30Replaced `buffer:text_range()` C function with a Lua function.mitchell
2016-01-30Added single-instance functionality for Win32 and require GLib 2.28+.mitchell
Thanks to Carl Sturtivant for the Win32 proof-of-concept code.
2016-01-30Code cleanup; src/textadept.cmitchell
2016-01-29Fixed focus bug in `view:goto_buffer()` with non-focused view; src/textadept.cmitchell
2016-01-29`buffer:clear_cmd_key()` should only take one argument.mitchell
The `bit32` library makes bit shifting easier.
2015-12-31Updated copyright date.mitchell
2015-09-15Updated to Scintilla 3.6.1.mitchell
2015-08-11Fixed segfault when quitting while the command entry is open; src/textadept.cmitchell
2015-08-02Updated to Scintilla 3.6.0.mitchell
2015-06-01Removed unnecessary casts; src/textadept.cmitchell
2015-04-15Allow undocumented `events.MODIFIED` to emit position and length.mitchell
2015-03-12Emit `BUFFER_AFTER_SWITCH` event before `BUFFER_DELETED`; src/textadept.cmitchell
This fixes a view-specific property bug.
2015-03-11Updated to Lua 5.3, LPeg 0.12.2, and lfs 1.6.3.mitchell
LuaJIT uses Lua 5.3's new utf8 library. Restored documentation for Lua 5.1 symbols and added deprecation notes.
2015-03-09Fixed accidental firing of "Escape" key on window focus lost; src/textadept.cmitchell
2015-01-22Made `args.process()` private.mitchell
2015-01-20Fixed bug in preventing standard focus out events to be fired; src/textadept.cmitchell
It is desirable to keep the command entry visible if the window is losing focus. Otherwise, allow normal focus out events to be fired, including Scintilla's defaults that hide the cursor, etc.
2015-01-20Code cleanup; src/textadept.cmitchell
2015-01-20Fixed horizontal expand flag for Find & Replace widgets in GTK3; src/textadept.cmitchell
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
2015-01-12Fixed bug in reporting split views in GTK3; src/textadept.cmitchell
2014-12-31Updated copyright year.mitchell
2014-12-23Enable suspend in the terminal version.mitchell
Patch libtermkey to allow this and also to support mouse enabling/disabling. Needed to change ^Z undo to M-Z and added M-S-Z as extra redo.
2014-12-17Fixed curses bug with toggling find options via API; src/textadept.cmitchell
2014-11-29Fixed command entry reset bug for real instead of in r1861.mitchell
2014-11-26Integrated Chris Emerson's curses split view window manager.mitchell
2014-11-26Allow connection to `events.QUIT` without requiring index of 1.mitchell
2014-11-24Keep command entry focus when window loses focus; src/textadept.cmitchell
2014-11-23Patch CDK for basic UTF-8 support.mitchell
The find & replace pane and UI dialogs can now handle UTF-8 characters. The support is functional, but not perfect. Since the patch only targets the widgets Textadept uses, it cannot be submitted to upstream CDK for inclusion. It's kind of a hack anyway.
2014-11-18Use labels in the statusbar instead of statusbar widgets; src/textadept.cmitchell
This allows the docstatusbar to resize and align right.
2014-11-15Fixed command entry reset bug now that the entry is a Scintilla buffer.mitchell
2014-10-30Added `LINUX` and `BSD` platform flags for the sake of completeness.mitchell
Previously, Linux was inferred from the expression `not WIN32 and not OSX`.
2014-10-29Fixed compiler warnings.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-24Fixed bug in `lL_event()` for LUA_TNUMBER type size mismatches; src/textadept.cmitchell
The type extracted for LUA_TNUMBER was `sptr_t` (long), however most of the time, `int` is used. Since `sizeof(long) > sizeof(int)`, `lL_event()` sometimes pushed extra bytes in memory around the original integer passed (at least I think this explains the behavior I observed).
2014-10-22Enable terminal mouse clicks and movements in Windows; src/textadept.cmitchell
2014-10-21Enable mouse clicks and movements in the terminal version.mitchell
This requires Scinterm r92 (changset 90ba2dd413c3).
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-10-11Move the command entry into a split pane on GTK.mitchell
In the previous implementation without a split pane, the command entry could not shrink in size.
2014-10-05Replaced command entry text field with a Scintilla buffer.mitchell
`ui.command_entry` now has the same functions and fields as `buffer`s as well as an additional `height` property. Note that when the command entry is active, `_G.buffer` is unchanged, so many existing key commands cannot be bound to command entry key modes. See `keys.lua_command` in *modules/textadept/command_entry.lua* for the proper way to bind them. Removed `ui.command_entry.entry_text` and `ui.command_entry.show_completions()`.
2014-08-15Correctly recognize DEL when emitted by the Backspace key; src/textadept.cmitchell
2014-08-15Reverted separating ^H from Backspace in the terminal version.mitchell
2014-08-13Separate ^H from Backspace in the terminal version.mitchell
Also have libtermkey take care of saving and restoring termios.