# Allow ignoring soft wraps when moving to line ends \(\#11153\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/edff78e722a505fd068bad61d0b466bcaafa4a08)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: edff78e722a505fd068bad61d0b466bcaafa4a08

Requested commit: edff78e722a505fd068bad61d0b466bcaafa4a08

Commit: edff78e722a505fd068bad61d0b466bcaafa4a08

Tree: 455e80d791aeff602a20f3af12faab2a224cadfd

Author: Tarun Verghis

Committer: GitHub

## Message

```
Allow ignoring soft wraps when moving to line ends (#11153)

Release Notes:

- Fixed #10888

This patch addresses behavior of
`Editor::move_to_{beginning|end}_of_line`. It adds a setting,
`stop_at_soft_wraps` when defining a keymap for the
`editor::MoveToBeginningOfLine` and `editor::MoveToEndOfLine` actions.
When `true`, it causes movement to the either end of the line (via, for
example Home or End), to go to the logical end, as opposed to the
nearest soft wrap point in the respective direction.

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

- [c81230405f267c5bad06c732bc99bf6b537fcf18](https://git.cafe/gitcafe/zed/commit/c81230405f267c5bad06c732bc99bf6b537fcf18?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/edff78e722a505fd068bad61d0b466bcaafa4a08?format=markdown)
