aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
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-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
2018-05-27Refer to Lua's 'package.loaded' table name by constant, not literal.mitchell
2018-04-25Removed LuaJIT version of Textadept.mitchell
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
2018-03-21Updated Scintilla LongTerm3 branch reference to include many backports from 4.x.mitchell
2018-03-17Fixed initialization errors not showing in the terminal version.mitchell
A blank screen was shown instead.
2018-03-12Start using Scintilla's LongTerm3, which now includes Scintillua and Scinterm.mitchell
Since LongTerm3 requires a C++11 compiler, GCC 4.9+ is required. Since C++11 includes regex capability, drop TRE dependency.
2018-02-25Attempt to fix some compiler warnings and errors recently introduced.mitchell
2018-02-24Define header flags in source code rather than in Makefile.mitchell
Requires lspawn r60 (changeset 9a8b4b5e4137) and gtdialog r112 (changeset 6435a42450c7).
2018-02-24Provide minimal support for GTK 3 and ignore deprecations.mitchell
Textadept will never be targeted at GTK 3 or higher.
2018-02-21The terminal version can immediately focus a clicked view.mitchell
This allows for immediate scrolling, selections, etc. in non-focused views. This behavior mimics the GUI version.
2018-01-31Fixed busy wait in second instance of Textadept on Windows.mitchell
Other instances should not attempt to become the single instance by waiting on a named pipe to be created, as it already exists.
2018-01-25Updated copyright year.mitchell
2017-11-18Fixed non-global buffer operations whose doc pointers are outside int range.mitchell
Since doc pointers are signed, a greater than zero test is not always correct.
2017-11-12Buffer settings on startup apply to subsequent buffers.mitchell
As a result, no need for a *properties.lua* file anymore. Also, renamed `ui.set_theme()` to `buffer.set_theme()`.
2017-07-25Properly handle `buffer.margin_left` and `buffer.margin_right`.mitchell
Scintilla's iface for them is different than similar properties.