aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
AgeCommit message (Collapse)Author
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.
2019-12-31Updated copyright year.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-10-06Ensure `events.BUFFER_BEFORE_SWITCH` is emitted properly during `buffer.new()`.mitchell
It appears that calling SCI_CREATEDOCUMENT alters view state immediately such that at least fold state is no longer available to store.
2019-07-30Fail more gracefully when attempting to create buffers on init.mitchell
2019-07-11Updated to latest Scintilla LongTerm3 revision.mitchell
Scintilla.iface has changed, as has some of its underlying platform API. Testing sooner is better than later.
2019-05-03Updated default main window size and some default dialog sizes.mitchell
1080p (full HD) screens seem to be the norm now.
2019-04-18Do not emit an `events.SAVE_POINT_LEFT` event for unfocused views.mitchell
Forcing a switch to and from the source buffer's view triggers "switch" view events, which can cause trouble. There's no need to know this in real-time and `buffer.modified` can be checked in an `events.BUFFER_AFTER_SWITCH` or `events.VIEW_AFTER_SWITCH` handler.
2019-02-16Updated copyright year.mitchell
2018-10-31Fix potential crashes in `string.iconv()` with tiny strings.mitchell
2018-10-16Attempt to fix key handling on international keyboards.mitchell
Updating to GTK 2.24.32 on Windows seems to have removed the need to translate keys. It is possible that some international layouts do not need it, but some do.
2018-10-14Experimentally move external lspawn module into Lua os module as a patch.mitchell
2018-09-10Added ability to save/restore persistent data during reset.mitchell