# cmd_bind_key_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L55
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/

tmux command: [`bind-key`](/en/tmux/3.7c/manual/bind-key/)

```c
static enum cmd_retval cmd_bind_key_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_count`](/en/tmux/3.7c/reference/c-function-args_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L63)
- [`args_get`](/en/tmux/3.7c/reference/c-function-args_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L59)
- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L71)
- [`cmd_get_args`](/en/tmux/3.7c/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L57)
- [`cmd_parse_from_arguments`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_arguments/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L94)
- [`cmd_parse_from_string`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L92)
- [`cmdq_error`](/en/tmux/3.7c/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L67)
- [`key_bindings_add`](/en/tmux/3.7c/reference/c-function-key_bindings_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L80)
- [`key_string_lookup_string`](/en/tmux/3.7c/reference/c-function-key_string_lookup_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L65)

## Other function references

- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function)

## Referenced by

- [`cmd_bind_key_entry`](/en/tmux/3.7c/reference/c-variable-cmd_bind_key_entry/) (attribute)

## Referenced declarations

- [`ARGS_COMMANDS`](/en/tmux/3.7c/reference/c-enum-args_type-args_commands/) (constant)
- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`CMD_PARSE_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`CMD_RETURN_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmd_parse_result.cmdlist`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`cmd_parse_result.error`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`KEYC_NONE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_none/) (constant)
- [`KEYC_UNKNOWN`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_unknown/) (constant)
- [`cmd_parse_result.status`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-status/) (attribute)
- [`args_value.type`](/en/tmux/3.7c/reference/c-struct-args_value-type/) (attribute)
