Age | Commit message (Collapse) | Author |
|
|
|
This allows for arbitrary appending to history, not just for the current or
most recent mode.
|
|
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.
|
|
It's more reliable and is similar to `ui.find.active`.
|
|
Clarify that it's not normally needed.
|
|
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.
|
|
Include buffer/view constants as well, which should have been there anyway.
|
|
|
|
|
|
|
|
|
|
This is good practice.
|
|
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.
|
|
|
|
They had always been a bit counter-intuitive.
|
|
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.
|
|
|
|
|
|
This was the previous behavior, but did not distinguish between modes.
|
|
|
|
The Scintilla iface was changed to not return a second string length value.
|
|
|
|
This helps avoid disorienting jumps when the user is not aware a snippet is
still active.
|
|
|
|
|
|
|
|
|
|
Also performed some reformatting, refactoring, and code cleanup for the command
entry module.
|
|
|
|
|
|
|
|
This gives more control over when to include certain autocompletion and
documentation files like Textadept's API.
|
|
Textadept autocompletion and documentation is now only performed on Textadept
files.
Modified the LuaDoc doclet to only process "lua.luadoc" on its own, and updated
the Makefile rule accordingly.
|
|
|
|
The command entry no longer uses named key modes. Instead, mode keys are
supplied to `run()` if necessary. The command entry remains modal, though.
|
|
|
|
Silently passing second length parameter can cause subtle bugs in functions that
accept more than one parameter.
|
|
|
|
|
|
|
|
Mimic Lua 5.3 interpreter by auto-printing results and making '=' prefix
optional, call returned functions implicitly (no calling parentheses required),
and pretty print tables.
|
|
|
|
|
|
As a result, the undocumented `textadept.keys.utils` has been removed. Those
functions have been moved directly into menu definitions and their corresponding
keys have been bound to those menu functions (this also shows menu key shortcuts
properly). Therefore, "textadept.menu" should be loaded before "textadept.keys"
now. Also, setting `textadept.menu.menubar = {}` must be done within an
`events.INITIALIZED` handler.
|
|
In addition to code cleanup, ':' limits results to functions.
|
|
Do not use `ipairs()` and use more consistent variable names among other things.
|
|
|
|
|
|
|
|
|