# format_single_from_target

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4643
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-format_single_from_target/

```c
char * format_single_from_target(struct cmdq_item *item, const char *fmt)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `fmt` (`const char *`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L272)
- [`cmd_display_popup_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L373)
- [`cmd_if_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L75)
- [`cmd_load_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-load-buffer.c#L108)
- [`cmd_rename_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-rename-session-c-cmd_rename_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-rename-session.c#L54)
- [`cmd_rename_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-rename-window-c-cmd_rename_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-rename-window.c#L53)
- [`cmd_run_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L120)
- [`cmd_save_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-save-buffer.c#L107)
- [`cmd_select_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-pane.c#L207)
- [`cmd_set_environment_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-environment-c-cmd_set_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-environment.c#L69)
- [`cmd_set_option_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L87)
- [`cmd_show_options_exec`](/en/tmux/3.2a/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-show-options.c#L100)
- [`cmd_source_file_exec`](/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L152)

## Calls

- [`cmdq_get_target_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_target_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4645)
- [`format_single_from_state`](/en/tmux/3.2a/reference/c-function-format_single_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4647)

## Other function references

- [`cmdq_get_target`](/en/tmux/3.2a/reference/c-function-cmdq_get_target/) (function)

## Referenced declarations

- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
