Information commands. More...
#include "config.h"
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "icommands.h"
#include "functions.h"
#include "init.h"
#include "keymap.h"
#include "muttlib.h"
#include "opcodes.h"
#include "pager.h"
#include "version.h"
Go to the source code of this file.
Functions | |
static enum CommandResult | icmd_bind (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'bind' and 'macro' commands - Implements ICommand::parse() More... | |
static enum CommandResult | icmd_set (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'set' command to display config - Implements ICommand::parse() More... | |
static enum CommandResult | icmd_version (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse 'version' command - Implements ICommand::parse() More... | |
enum CommandResult | mutt_parse_icommand (char *line, struct Buffer *err) |
Parse an informational command. More... | |
static void | dump_bind (struct Buffer *buf, struct Mapping *menu, struct Keymap *map) |
Dump a bind map to a buffer. More... | |
static void | dump_macro (struct Buffer *buf, struct Mapping *menu, struct Keymap *map) |
Dump a macro map to a buffer. More... | |
static bool | dump_menu (struct Buffer *buf, struct Mapping *menu, bool bind) |
Dumps all the binds or macros maps of a menu into a buffer. More... | |
static void | dump_all_menus (struct Buffer *buf, bool bind) |
Dumps all the binds or macros inside every menu. More... | |
Variables | |
const struct ICommand | ICommandList [] |
All available informational commands. More... | |
Information 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 icommands.c.
|
static |
Parse 'bind' and 'macro' commands - Implements ICommand::parse()
Definition at line 230 of file icommands.c.
|
static |
Parse 'set' command to display config - Implements ICommand::parse()
Definition at line 306 of file icommands.c.
|
static |
Parse 'version' command - Implements ICommand::parse()
Definition at line 340 of file icommands.c.
enum CommandResult mutt_parse_icommand | ( | char * | line, |
struct Buffer * | err | ||
) |
Parse an informational command.
MUTT_CMD_SUCCESS | Success |
MUTT_CMD_WARNING | Warning with message: command failed |
MUTT_CMD_ERROR |
|
Definition at line 78 of file icommands.c.
Dump a bind map to a buffer.
buf | Output buffer |
menu | Map menu |
map | Bind keymap |
Definition at line 118 of file icommands.c.
Dump a macro map to a buffer.
buf | Output buffer |
menu | Map menu |
map | Macro keymap |
Definition at line 157 of file icommands.c.
Dumps all the binds or macros maps of a menu into a buffer.
buf | Output buffer |
menu | Menu to dump |
bind | If true it's :bind, else :macro |
bool | true if menu is empty, false if not |
Definition at line 185 of file icommands.c.
|
static |
Dumps all the binds or macros inside every menu.
buf | Output buffer |
bind | If true it's :bind, else :macro |
Definition at line 212 of file icommands.c.
const struct ICommand ICommandList[] |
All available informational commands.
Definition at line 59 of file icommands.c.