Dump key bindings. More...
#include "config.h"#include <limits.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <string.h>#include <wchar.h>#include "mutt/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "lib.h"#include "menu/lib.h"#include "pager/lib.h"#include "parse/lib.h"
Include dependency graph for dump.c:Go to the source code of this file.
Functions | |
| static int | print_bind (enum MenuType menu, FILE *fp) |
| Display the bindings for one menu. | |
| static void | colon_bind (enum MenuType menu, FILE *fp) |
| Dump the key bindings. | |
| static int | print_macro (enum MenuType menu, FILE *fp) |
| Display the macros for one menu. | |
| static void | colon_macro (enum MenuType menu, FILE *fp) |
| Dump the macros. | |
| enum CommandResult | dump_bind_macro (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse 'bind' and 'macro' commands - Implements Command::parse() -. | |
| int | binding_sort (const void *a, const void *b, void *sdata) |
| Compare two BindingInfo by their keybinding - Implements sort_t -. | |
| void | escape_macro (const char *macro, struct Buffer *buf) |
| Escape any special characters in a macro. | |
| static const char * | help_lookup_function (int op, enum MenuType menu) |
| Find a keybinding for an operation. | |
| void | gather_menu (enum MenuType menu, struct BindingInfoArray *bia_bind, struct BindingInfoArray *bia_macro) |
| Gather info about one menu. | |
| int | measure_column (struct BindingInfoArray *bia, int col) |
| Measure one column of a table. | |
Dump key bindings.
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 dump.c.
|
static |
Display the bindings for one menu.
| menu | Menu type |
| fp | File to write to |
| num | Number of bindings |
Definition at line 51 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Dump the key bindings.
| menu | Menu type |
| fp | File to write to |
Definition at line 88 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Display the macros for one menu.
| menu | Menu type |
| fp | File to write to |
| num | Number of macros |
Definition at line 110 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Dump the macros.
| menu | Menu type |
| fp | File to write to |
Definition at line 154 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void escape_macro | ( | const char * | macro, |
| struct Buffer * | buf ) |
Escape any special characters in a macro.
| [in] | macro | Macro string |
| [out] | buf | Buffer for the result |
Replace characters, such as <Enter> with the literal "\n"
Definition at line 282 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Find a keybinding for an operation.
| op | Operation, e.g. OP_DELETE |
| menu | Current Menu, e.g. MENU_PAGER |
| str | Key binding |
| NULL | No key binding found |
Definition at line 336 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void gather_menu | ( | enum MenuType | menu, |
| struct BindingInfoArray * | bia_bind, | ||
| struct BindingInfoArray * | bia_macro ) |
Gather info about one menu.
| menu | Menu type |
| bia_bind | Array for bind results (may be NULL) |
| bia_macro | Array for macro results (may be NULL) |
Definition at line 357 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int measure_column | ( | struct BindingInfoArray * | bia, |
| int | col ) |
Measure one column of a table.
| bia | Array of binding info |
| col | Column to measure |
| num | Width of widest column |
Definition at line 413 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function: