# `Plushie.Command.Text`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/command/text.ex#L1)

Text input commands: selection and cursor movement.

All functions support window-qualified paths (`"window#widget"`).

## Example

    def update(model, %WidgetEvent{type: :click, id: "select-all"}) do
      {model, Command.Text.select_all("main#email")}
    end

# `move_cursor_to`

```elixir
@spec move_cursor_to(String.t(), integer()) :: Plushie.Command.t()
```

Sends the `move_cursor_to` command to the widget.

# `move_cursor_to_end`

```elixir
@spec move_cursor_to_end(String.t()) :: Plushie.Command.t()
```

Sends the `move_cursor_to_end` command to the widget.

# `move_cursor_to_front`

```elixir
@spec move_cursor_to_front(String.t()) :: Plushie.Command.t()
```

Sends the `move_cursor_to_front` command to the widget.

# `select_all`

```elixir
@spec select_all(String.t()) :: Plushie.Command.t()
```

Sends the `select_all` command to the widget.

# `select_range`

```elixir
@spec select_range(String.t(), integer(), integer()) :: Plushie.Command.t()
```

Sends the `select_range` command to the widget.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
