Parse key binding commands. More...
#include "core/lib.h"
Include dependency graph for commands.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| enum CommandResult | km_bind (struct MenuDefinition *md, const char *key_str, int op, char *macro, char *desc, struct Buffer *err) |
| Set up a key binding. | |
| char * | parse_keymap (const struct Command *cmd, struct MenuDefinitionArray *mda, struct Buffer *line, struct Buffer *err) |
| Parse a user-config key binding. | |
| void | parse_menu (struct MenuDefinitionArray *menus, const char *s, struct Buffer *err) |
| Parse menu-names into an array. | |
| enum CommandResult | parse_bind (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'bind' command - Implements Command::parse() -. | |
| enum CommandResult | parse_exec (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'exec' command - Implements Command::parse() -. | |
| enum CommandResult | parse_macro (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'macro' command - Implements Command::parse() -. | |
| enum CommandResult | parse_push (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'push' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unbind (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'unbind' and 'unmacro' commands - Implements Command::parse() -. | |
Parse key binding commands.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file commands.h.
| enum CommandResult km_bind | ( | struct MenuDefinition * | md, |
| const char * | key_str, | ||
| int | op, | ||
| char * | macro, | ||
| char * | desc, | ||
| struct Buffer * | err ) |
Set up a key binding.
| md | Menu Definition |
| key_str | Key string |
| op | Operation, e.g. OP_DELETE |
| macro | Macro string |
| desc | Description of macro (OPTIONAL) |
| err | Buffer for error message |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Insert a key sequence into the specified map. The map is sorted by ASCII value (lowest to highest)
Definition at line 51 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char * parse_keymap | ( | const struct Command * | cmd, |
| struct MenuDefinitionArray * | mda, | ||
| struct Buffer * | line, | ||
| struct Buffer * | err ) |
Parse a user-config key binding.
| cmd | Command being processed |
| mda | Array for results |
| line | Buffer containing config string |
| err | Buffer for error messages |
| ptr | Key string for the binding |
Expects to see: <menu-string>,<menu-string>,... <key-string>
Definition at line 115 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void parse_menu | ( | struct MenuDefinitionArray * | menus, |
| const char * | s, | ||
| struct Buffer * | err ) |
Parse menu-names into an array.
| menus | Array for results |
| s | String containing menu-names |
| err | Buffer for error messages |
Expects to see: <menu-string>[,<menu-string>]
Definition at line 175 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function: