# cmd_list_keys_format_add_key_binding

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-keys.c#L140
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-list-keys-c-cmd_list_keys_format_add_key_binding/

```c
static void cmd_list_keys_format_add_key_binding(struct format_tree *ft, const struct key_binding *bd, const char *prefix)
```

## Parameters

- `ft` (`struct format_tree *`)
- `bd` (`const struct key_binding *`)
- `prefix` (`const char *`)

## Called by

- [`cmd_list_keys_exec`](/en/tmux/latest/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-keys.c#L237)

## Calls

- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-keys.c#L146)

## Other function references

- [`cmd_list_print`](/en/tmux/latest/reference/c-function-cmd_list_print/) (function)
- [`key_string_lookup_key`](/en/tmux/latest/reference/c-function-key_string_lookup_key/) (function)

## Referenced declarations

- [`CMD_LIST_PRINT_ESCAPED`](/en/tmux/latest/reference/c-define-tmux-h-cmd_list_print_escaped/) (constant)
- [`CMD_LIST_PRINT_NO_GROUPS`](/en/tmux/latest/reference/c-define-tmux-h-cmd_list_print_no_groups/) (constant)
- [`key_binding.cmdlist`](/en/tmux/latest/reference/c-struct-key_binding-cmdlist/) (attribute)
- [`key_binding.flags`](/en/tmux/latest/reference/c-struct-key_binding-flags/) (attribute)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`key_binding.key`](/en/tmux/latest/reference/c-struct-key_binding-key/) (attribute)
- [`key_binding`](/en/tmux/latest/reference/c-struct-key_binding/) (struct)
- [`KEY_BINDING_REPEAT`](/en/tmux/latest/reference/c-define-tmux-h-key_binding_repeat/) (constant)
- [`key_binding.note`](/en/tmux/latest/reference/c-struct-key_binding-note/) (attribute)
- [`key_binding.tablename`](/en/tmux/latest/reference/c-struct-key_binding-tablename/) (attribute)
