Module gui.command_entry

Textadept's Command entry.

Fields

  • entry_text: The text in the entry.

Overview

Access to the Lua state is available through this command entry. It is useful for debugging, inspecting, and entering buffer or view commands. If you try cause instability in Textadept's Lua state, you might very well succeed. Be careful.

Tab-completion for functions, variables, tables, etc. is available. Press the Tab key to display a list of available completions. Use the arrow keys to make a selection and press Enter to insert it.

Abbreviated commands for the buffer, view and gui are available. So buffer:append_text('textadept') can be shortened to append_text('textadept'). Please note print() calls gui.print() and not Lua's print(). The latter can be accessed with _G.print().

Extending

You can extend the command entry to do more than enter Lua commands. An example of this is incremental search. See modules/textadept/find.lua for the implementation.

Functions

focus () Focuses the command entry.


Functions

focus ()
Focuses the command entry.

Valid XHTML 1.0!