Age | Commit message (Collapse) | Author |
|
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.
|
|
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).
|
|
|
|
This requires Scinterm r92 (changset 90ba2dd413c3).
|
|
For bracketed paste, turn off auto-pair and auto-indent.
|
|
In the previous implementation without a split pane, the command entry could not
shrink in size.
|
|
`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()`.
|
|
|
|
|
|
Also have libtermkey take care of saving and restoring termios.
|
|
Requires lspawn r21. Thanks to Chris Emerson for proof-of-concept code.
Spawning still does not work for Win32 terminal version, though.
|
|
|
|
|
|
|
|
|
|
|
|
Also fixed some curses errors introduced by the last commit.
|
|
The `textadept.run` module now uses `spawn()` instead of `io.popen()`.
This module replaces the dependency on winapi. Removed experimental
`io.popen()` and `os.execute()` hooks. They may be re-implemented later using
`spawn()`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is an experimental change and requires the latest Scintillua changes.
|
|
|
|
Deprecated `textadept.menu.set_contextmenu()` in favor of new
`textadept.menu.set_contextmenus()`.
|
|
This eliminates the problems caused by libtermkey and CDK having separate input
buffers.
|
|
|
|
Compile in a stripped version of Steve Donovan's winapi library and override
`io.popen` and `os.execute`.
|
|
|
|
|
|
|
|
|
|
Created a "dummy" Scintilla view for operating on non-global documents.
Removed `buffer:check_global()` and replaced `buffer.dirty` with Scintilla's
`buffer.modify`.
|
|
|
|
|
|
A side effect is more efficient event emission during startup.
|
|
|
|
|
|
|
|
Also ensure backward-compatibility with existing session files.
|
|
This prevents any disorienting scrolling.
|
|
This prevents any disorienting scrolling.
|
|
|
|
C implicitly initializes them to NULL.
|
|
This reverts "Enter" to '\r' in Lua, so make a KEYSYM to retain '\n'.
|
|
Themes are now just single files that share Textadept's Lua state.
Also added a new "settings.lua" that functions in place of buffer and view theme
files.
Requires latest Scintillua.
|
|
Win32-curses still uses '\r' since pdcurses reports it.
|
|
If command_entry_completion handles keys first, pressing "Tab" after showing
completions switches focus to Scintilla without propagating the key.
If command_entry handles keys first, pressing "Enter" in the completion list
will be incorrectly interpreted as a normal "Enter" press.
Reverted to using the "activate" signal to interpret "Enter" so command_entry
can handle keys first, keeping "Tab" from switching focus.
|