# cmd_find_window_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L45
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-find-window-c-cmd_find_window_exec/

tmux command: [`find-window`](/en/tmux/3.2a/manual/find-window/)

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

## Parameters

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

## Calls

- [`args_free`](/en/tmux/3.2a/reference/c-function-args_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L101)
- [`args_has`](/en/tmux/3.2a/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L54)
- [`args_parse`](/en/tmux/3.2a/reference/c-function-args_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L94)
- [`args_set`](/en/tmux/3.2a/reference/c-function-args_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L96)
- [`cmd_get_args`](/en/tmux/3.2a/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L47)
- [`cmdq_get_target`](/en/tmux/3.2a/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L48)
- [`window_pane_set_mode`](/en/tmux/3.2a/reference/c-function-window_pane_set_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L99)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find-window.c#L69)

## Referenced by

- [`cmd_find_window_entry`](/en/tmux/3.2a/reference/c-variable-cmd_find_window_entry/) (attribute)

## Referenced declarations

- [`args.argv`](/en/tmux/3.2a/reference/c-struct-args-argv/) (attribute)
- [`window_pane.argv`](/en/tmux/3.2a/reference/c-struct-window_pane-argv/) (attribute)
- [`cmd`](/en/tmux/3.2a/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.2a/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.2a/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`window_tree_mode`](/en/tmux/3.2a/reference/c-variable-window_tree_mode/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wp/) (attribute)
