# LibTmux::Model::ClientRef.switch-relative

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L344
- **Inherited from:** LibTmux::Client::ClientTarget
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-clientref-switch-relative/

```
method switch-relative(Str:D $direction, *%operation --> Result:D)
```

Switch relative to this client's current/previous session.

Switch relative to this client's current/previous session.

## Parameters

- `$direction` (`Str:D`)
- `%operation`

## tmux command

The tmux commands behind `switch-relative`.

- [`switch-client`](/en/tmux/latest/manual/switch-client/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_switch_client_entry`](/en/tmux/latest/reference/c-variable-cmd_switch_client_entry/) (attribute)
- [`cmd_switch_client_exec`](/en/tmux/latest/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function)
