Dump key bindings. More...
Include dependency graph for dump.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | BindingInfo |
| Info about one keybinding. More... | |
Functions | |
| ARRAY_HEAD (BindingInfoArray, struct BindingInfo) | |
| int | binding_sort (const void *a, const void *b, void *sdata) |
| Compare two BindingInfo by their keybinding - Implements sort_t -. | |
| void | colon_bind (const struct MenuDefinition *md, FILE *fp) |
| Dump the key bindings. | |
| void | colon_macro (const struct MenuDefinition *md, FILE *fp) |
| Dump the macros. | |
| void | dump_bind_macro (const struct Command *cmd, const struct MenuDefinition *md, struct Buffer *buf, struct Buffer *err) |
| Dump a Menu's binds or macros to the Pager. | |
| void | escape_macro (const char *macro, struct Buffer *buf) |
| Escape any special characters in a macro. | |
| void | gather_menu (const struct MenuDefinition *md, struct BindingInfoArray *bia_bind, struct BindingInfoArray *bia_macro, bool one_submenu) |
| Gather info about one menu. | |
| int | gather_unbound (const struct MenuDefinition *md, struct BindingInfoArray *bia_unbound) |
| Gather info about unbound functions for one menu. | |
| const char * | help_lookup_function (const struct MenuDefinition *md, int op) |
| Find a keybinding for an operation. | |
| struct StringArray | km_get_func_array (const struct MenuDefinition *md) |
| Get array of function names for a Menu. | |
| int | measure_column (struct BindingInfoArray *bia, int col) |
| Measure one column of a table. | |
| int | print_bind (const struct MenuDefinition *md, FILE *fp) |
| Display the bindings for one menu. | |
| int | print_macro (const struct MenuDefinition *md, FILE *fp) |
| Display the macros for one menu. | |
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.h.
| ARRAY_HEAD | ( | BindingInfoArray | , |
| struct BindingInfo | ) |
Here is the call graph for this function:| void colon_bind | ( | const struct MenuDefinition * | md, |
| FILE * | fp ) |
Dump the key bindings.
| md | Menu Definition, NULL for all Menus |
| fp | File to write to |
Definition at line 289 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void colon_macro | ( | const struct MenuDefinition * | md, |
| FILE * | fp ) |
Dump the macros.
| md | Menu Definition, NULL for all Menus |
| fp | File to write to |
Definition at line 361 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void dump_bind_macro | ( | const struct Command * | cmd, |
| const struct MenuDefinition * | md, | ||
| struct Buffer * | buf, | ||
| struct Buffer * | err ) |
Dump a Menu's binds or macros to the Pager.
| cmd | Command |
| md | Menu Definition, NULL for all Menus |
| buf | Menu name, e.g. "index" |
| err | Buffer for errors |
Definition at line 387 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 54 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void gather_menu | ( | const struct MenuDefinition * | md, |
| struct BindingInfoArray * | bia_bind, | ||
| struct BindingInfoArray * | bia_macro, | ||
| bool | one_submenu ) |
Gather info about one menu.
| [in] | md | Menu Definition |
| [out] | bia_bind | Array for bind results (may be NULL) |
| [out] | bia_macro | Array for macro results (may be NULL) |
| [in] | one_submenu | Only parse the first SubMenu |
Definition at line 134 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int gather_unbound | ( | const struct MenuDefinition * | md, |
| struct BindingInfoArray * | bia_unbound ) |
Gather info about unbound functions for one menu.
| [in] | md | Menu Definition |
| [out] | bia_unbound | Unbound functions |
| num | Number of unbound functions |
Definition at line 439 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const char * help_lookup_function | ( | const struct MenuDefinition * | md, |
| int | op ) |
| struct StringArray km_get_func_array | ( | const struct MenuDefinition * | md | ) |
Get array of function names for a Menu.
| md | Menu Definition |
Definition at line 475 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 229 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int print_bind | ( | const struct MenuDefinition * | md, |
| FILE * | fp ) |
Display the bindings for one menu.
| md | Menu Definition |
| fp | File to write to |
| num | Number of bindings |
Definition at line 249 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int print_macro | ( | const struct MenuDefinition * | md, |
| FILE * | fp ) |
Display the macros for one menu.
| md | Menu Definition |
| fp | File to write to |
| num | Number of macros |
Definition at line 314 of file dump.c.
Here is the call graph for this function:
Here is the caller graph for this function: