Next: Numeric Argument In Drei, Up: Defining Drei Commands
Here is a list of the command tables that are always active, along with a note describing what they are used for:
Commands for dealing with comments in, for example, source code. For syntaxes that do not have the concept of a comment, many of the commands of this table will not do anything.
Commands that transform the buffer contents somehow (such as transposing two words).
Commands that deal with managing the mark or nondestructively copying buffer contents.
Commands that insert the gesture used to invoke them into the buffer. You probably won't need to add commands to this table.
A command table that inherits from the previously mentioned tables (plus some more). This command table is the “basic” table for accessing Drei commands, and is a good place to put your own user-defined commands if they do not fit in another table.
There are also two conditionally-active command tables:
This command table is only active in the gadget version of Drei.
This command table is only active when Drei is used as an input-editor.
When you define keybindings for your commands, you should put the keybindings in the same command table as the command itself.