aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/command_entry.lua
AgeCommit message (Collapse)Author
2021-04-14Addressed some minor Luacheck issues.mitchell
Not all shadowing warnings need to be fixed.
2021-04-11Initial pass reformatting all code.mitchell
Use clang-format, LuaFormatter, and 100 character limit on lines.
2021-01-29Updated copyright information.mitchell
2020-11-30Updated LuaDoc.mitchell
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-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-13Moved `ui.command_entry.active` into C.mitchell
It's more reliable and is similar to `ui.find.active`.
2020-10-12Updated LuaDoc for `ui.command_entry.append_history()`.mitchell
Clarify that it's not normally needed.
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-02Command entry also considers contents of `textadept` as globals.mitchell
Include buffer/view constants as well, which should have been there anyway.
2020-09-29Updated copyright information.mitchell
2020-08-22Added `ui.command_entry.active` and fixed bugs in `events.KEYPRESS` handlers.mitchell
2020-08-17Small code cleanup.mitchell
2020-08-04Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.mitchell
2020-08-04Set `buffer.auto_c_order` prior to `buffer:auto_c_show()`.mitchell
This is good practice.
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-09Fixed display of API documentation in the command entry.mitchell
2020-06-28Changed keybinding modifier keys.mitchell
They had always been a bit counter-intuitive.
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-05-24Restore prior key mode after running the command entry.mitchell
2020-05-24Updated tests for recent command entry history change.mitchell
2020-04-29When running the command entry, initially show the mode's prior text.mitchell
This was the previous behavior, but did not distinguish between modes.
2020-03-30Fixed off-by-one issues with `buffer:get_cur_line()`.mitchell
2020-03-26Removed extra sets of () around some buffer function calls.mitchell
The Scintilla iface was changed to not return a second string length value.
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-22Use the statusbar to indicate an active snippet.mitchell
This helps avoid disorienting jumps when the user is not aware a snippet is still active.
2020-03-17Added per-mode command entry history.mitchell
2020-03-17Show XPM images in Lua command entry completions.mitchell
2020-03-16Renamed `keys.MODE` to `keys.mode`.mitchell
2020-03-13More code cleanup, refactoring, and reformatting.mitchell
2020-03-10Removed '=' compatibility in Lua command entry.mitchell
Also performed some reformatting, refactoring, and code cleanup for the command entry module.
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-28Allow view functions to be run from the command entry by name only.mitchell
2019-12-31Updated copyright year.mitchell
2019-11-08API file lists and Lua tags lists can contain functions that return file paths.mitchell
This gives more control over when to include certain autocompletion and documentation files like Textadept's API.
2019-11-07Split Lua and Textadept autocompletion and documentation files.mitchell
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.
2019-11-07Removed deprecated `ui.command_entry` functions.mitchell
2019-09-22Replaced `ui.command_entry.*_mode()` with simplified `ui.command_entry.run()`.mitchell
The command entry no longer uses named key modes. Instead, mode keys are supplied to `run()` if necessary. The command entry remains modal, though.
2019-02-16Updated copyright year.mitchell
2018-12-08Only pass command entry text to finish mode function.mitchell
Silently passing second length parameter can cause subtle bugs in functions that accept more than one parameter.
2018-10-22Small code cleanup.mitchell
2018-05-27Properly handle abbreviated setting of write-only properties via command entry.mitchell
2018-01-25Updated copyright year.mitchell
2017-06-22Lua command entry improvements.mitchell
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.
2016-12-31Updated copyright information.mitchell
2016-06-27Small code cleanup and documentation updates.mitchell
2016-04-15Use function notation for menu and key commands.mitchell
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.
2016-04-05Reworked Lua completions; modules/textadept/command_entry.luamitchell
In addition to code cleanup, ':' limits results to functions.
2016-04-02Code cleanup.mitchell
Do not use `ipairs()` and use more consistent variable names among other things.
2015-12-31Updated copyright date.mitchell