aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2020-11-10Fill `keys` and `snippet` tables with language-specific tables on init.mitchell
This allows users and language modules to easily add bindings and snippets without stepping on each other.
2020-11-03Fixed `lfs.walk()` bug with root directory.mitchell
Prevent dir to walk from becoming an empty string.
2020-11-01Added optional mode parameter to `ui.command_entry.append_history()`.mitchell
This allows for arbitrary appending to history, not just for the current or most recent mode.
2020-10-29Added more unit tests.mitchell
2020-10-25Handle more types of recursive symlinks in `lfs.walk()`.mitchell
2020-10-25Handle recursive symlinks in `lfs.walk()`.mitchell
2020-10-22`textadept.editing.strip_trailing_spaces` should not apply to binary files.mitchell
2020-10-20Code cleanup.mitchell
Of note: * io.save_all_files() does not visit each buffer to save anymore. An unintended side-effect was checking for outside modification (but only if the file itself was modified), so outside changes will always be saved over now. * The menu clicked handler uses assert_type(), so the 'Unknown command' localization is no longer needed. * When printing to a new buffer type would split the view, use an existing split view when possible. * Prefer 'goto continue' construct in loops over nested 'if's. * Fixed clearing of ui.find.replace_entry_text on reset in the GUI version. * Fixed lack of statusbar updating when setting options like buffer EOL mode, indentation, and encoding. * Renamed internal new_snippet() to new() and put it in the snippet metatable.
2020-10-17Added `textadept.run.set_arguments()`.mitchell
This replaces custom code in *modules/textadept/menu.lua*.
2020-10-13Implement \U, \L, \u, and \l case transformations in regex replacements.mitchell
2020-10-12Added `ui.command_entry.append_history()` for manually appending history.mitchell
Normally history is auto-appended by the default '\n' key handler, but some custom modes may have their own '\n' handlers and did not have a way to append history.
2020-10-08Updated spellchecking tests with various, non-UTF-8 encodings.mitchell
2020-10-08Added `textadept.history` module for recording and navigating position history.mitchell
2020-10-05Fixed advancing caret for incremental find when text is not found.mitchell
2020-10-02Command entry also considers contents of `textadept` as globals.mitchell
Include buffer/view constants as well, which should have been there anyway.
2020-10-02Fixed bad test.mitchell
It was failing in a group setting, not individually.
2020-09-29Updated copyright information.mitchell
2020-09-27Fixed `io.quick_open()` not doing anything when file limit was exceeded.mitchell
2020-09-19Added `events.COMMAND_TEXT_CHANGED`.mitchell
This is analagous to `events.FIND_TEXT_CHANGED`.
2020-09-19Added `events.FILE_{BEFORE,AFTER}_RELOAD` and save/restore bookmarks.mitchell
Also moved buffer state save/restore into ui module.
2020-09-16Record directory for "find in files" searches.mitchell
2020-09-16No need for "-e" in simple sed invocations.mitchell
2020-09-12Fixed restoration of replace entry text after "Replace All".mitchell
2020-09-09Added test file hidden by my local hgignore.mitchell
2020-09-07Fixed find highlighting test failure.mitchell
`ui.find.highlight_all_matches` was changed to `false` by default, so enable it for this test.
2020-08-27Fixed restoring find & replace pane's replace text outside of "Find in Files".mitchell
2020-08-23Fixed bug where jumping to a find in files result of length 1 highlights wrong.mitchell
2020-08-22Added `ui.command_entry.active` and fixed bugs in `events.KEYPRESS` handlers.mitchell
2020-08-17Added `textadept.editing.auto_enclose` for auto-enclosing selected text.mitchell
2020-08-08Removed "View EOL" menu item and key binding.mitchell
It does not seem necessary anymore.
2020-08-08Use comma-separated patterns in find & replace pane's "Filter" field.mitchell
2020-08-04Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.mitchell
2020-08-04Prefer passing env table to `os.spawn()`.mitchell
It will construct "KEY=VALUE" list.
2020-08-03Updated to latest Scintilla hg to get `lexer.fold_consecutive_lines()`.mitchell
2020-08-02Fixed regression with showing "No results found" in searches.mitchell
2020-07-29Removed index conversion in tests.mitchell
These were vestigial from when 0-based indices were used.
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-25Moved word highlighting back into editing module and disable by default.mitchell
Also fixed `HIGHLIGHT_SELECTED` behavior with non-word selections.
2020-07-25Added find incremental test for whole word option.mitchell
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-19Make `ui.highlight_words` a multi-option setting.mitchell
Highlighting the current word could be useful instead of just the selected word.
2020-07-18Updated to latest Scintilla for new `lexer.fold*` API.mitchell
This replaces the need for `view.property['fold*'] = ...`
2020-07-15Call `os.spawn()` exit callback after `proc:wait()`.mitchell
Added tests for `os.spawn()`.
2020-07-14Renamed `textadept.editing.block_comment()` to `toggle_comment()`.mitchell
2020-07-13Limit word highlighting to single words.mitchell
2020-07-13Test setting styles directly via `lexer.styles`.mitchell
Requires latest Scintilla for proper `lexer.colors` return types.
2020-07-13Auto-highlight all occurrences of selected words and find results.mitchell
This supercedes `textadept.editing.highlight_word()`, which has been removed. Changed the color of word highlights in themes.
2020-07-12Made `ui.find.goto_file_found()` and `textadept.run.goto_error()` args optional.mitchell
2020-07-08Reverted accidental test 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.