aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
AgeCommit message (Collapse)Author
2020-11-16Added `events.UNFOCUS` for when Textadept loses focus.mitchell
Do not emit this event when a dialog is active.
2020-11-16Code cleanup.mitchell
2020-11-16Keep focus on find & replace pane as necessary when refocusing window.mitchell
2020-10-20Ensure command entry is defocused properly in the terminal version.mitchell
Otherwise, autocompletion lists may not be canceled.
2020-10-13Moved `ui.command_entry.active` into C.mitchell
It's more reliable and is similar to `ui.find.active`.
2020-10-04Collect garbage on reset.mitchell
External modules that have finalizers (__gc metamethod) need to be run now, or else segfaults can occur when running the gc later with stale data.
2020-09-29Updated copyright information.mitchell
2020-09-19Added `events.COMMAND_TEXT_CHANGED`.mitchell
This is analagous to `events.FIND_TEXT_CHANGED`.
2020-09-19Added `ui.update()` for unit tests.mitchell
2020-09-13Switch back to Scintilla default (4.x), Scinterm, and Scintillua.mitchell
Scintilla LongTerm3 maintenance is ending with upcoming Scintilla 5. Textadept now requires a C++17 compiler. Also updated Docker image.
2020-09-07Handle initial queries of `ui.find.find_text` and `repl_text` in curses.mitchell
2020-09-07Fixed emission of `events.UPDATE_UI` when resuming from suspend.mitchell
2020-09-07Added `ui.find.active` and prevent word highlighting when searching.mitchell
Word auto-highlighting when searching is too distracting.
2020-08-22Fixed crashes introduced by r2915.mitchell
2020-08-22Only switch buffers during `buffer:delete()` if necessary.mitchell
This is not necessary if deleting a non-visible buffer (e.g. in the dummy view).
2020-08-20Fixed keypress handler regression when compiling with modern MinGW-w64.mitchell
For some reason, modern MinGW-w64 GCC always returns boolean true unless compiling with debug symbols. Most typing into Scintilla widgets was not working at all. This does not occur on older versions of MinGW GCC.
2020-08-17Updated some documentation and use macOS instead of Mac OSX.mitchell
2020-08-09Fixed regression involving SCNotifications and text.mitchell
This affects SCN_URIDROPPED among others.
2020-08-08Updated find & replace pane key bindings.mitchell
In the GUI, Enter and Shift+Enter invoke Find Next and Find Prev, respectively. In the terminal, Up, Down, and Tab toggle between buttons more consistently; removed Shift-Tab binding. Also fixed entry drawing issue with Tab.
2020-07-29Once again removed accidencally committed changes.mitchell
2020-07-28Updated for 11.0 alpha 3.mitchell
2020-07-27Small code cleanup.mitchell
2020-07-26Use monospaced font in the Find & Replace Pane entries.mitchell
2020-07-25Find & Replace Pane now allows file filters to be specified for Find in Files.mitchell
Also updated `ui.find.focus()` to accept an optional table of options (e.g. in_files, incremental, etc.) for convenience.
2020-07-25Fixed initial setting of `ui.find.replace_entry_text` in the GUI.mitchell
GtkEntries are initialized with the same initial text pointer, which makes it impossible to initially differentiate between `find_text` and `repl_text` by their text pointers alone.
2020-07-25Fixed bug in incremental find in the terminal version.mitchell
Also fixed a bug in setting `ui.find.replace_entry_text`.
2020-07-25More code cleanup.mitchell
Use C99's stdbool.h.
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-24Code cleanup.mitchell
2020-07-08Reverted accidental commit of experimental changes.mitchell
2020-07-07Added `lexer.colors` and `lexer.styles` and updated themes to utilize them.mitchell
This allows for a more Lua table-oriented approach to defining and using colors and styles, instead of manually manipulating Scintilla property strings. Themes are still backwards compatible, as the underlying mechanisms are still in place.
2020-06-28Renamed `ui.bufstatusbar_text` to `ui.buffer_statusbar_text`.mitchell
2020-06-11Fixed toggling of Find & Replace pane visibility with `ui.find.focus()`.mitchell
2020-05-26Updated to latest Scintilla with ability to get style number from 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-30Fixed Win32 curses issues.mitchell
2020-03-26Removed accidentally committed experimental function.mitchell
2020-03-26Fixed GUI find history.mitchell
The wrong end of the history was being overwritten.
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-25Refactored buffer and view metamethods by splitting them up.mitchell
Grouping them saves a few lines of code, but it's not very maintainable.
2020-03-23Renamed callback function.mitchell
2020-03-23Added unit tests for core code in textadept.c.mitchell
Most of the core is exercised by the Lua test suite, but coverage lapses can be uncovered using the GCC compiler flags "-fprofile-arcs -ftest-coverage"..
2020-03-22Utilize userdata parameter in signal callback functions.mitchell
Ideally, callbacks would not utilize global variables at all. However, passing around just the Lua state seems a bit odd.
2020-03-22More code cleanup, reformatting, refactoring, and bug fixing.mitchell
2020-03-19Fixed tab label display on Windows.mitchell
2020-03-19Store GTK find/replace history in reverse order.mitchell
This allows for traditional command line history navigation using arrow keys.
2020-03-18Added `ui.dialogs.progressbar()` and utilize it with Find in Files.mitchell
2020-03-08Support SCI_PRIVATELEXERCALL with SCI_LOADLEXERLIBRARY.mitchell
This change should have been committed with r2697 (changeset 40a1cf1c4fd0).
2020-02-24Added `_SCINTILLA.events` and use it for SCNotifications.mitchell
2020-01-16Fixed some Windows terminal version issues and updated to PDCurses 3.9.mitchell
`io.popen()` and `os.execute()` change the console mode such that mouse clicks are no longer detected. Make sure it's reset. Also prevent `os.execute()` output from overwriting the window.