# Add support for \`editor::SwapSelectionEnds\` everywhere \(emacs exchange-point-and-mark\) \(\#23428\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3d47f32f0c603bf7fb7dc08720ab152bf3e68620

Requested commit: 3d47f32f0c603bf7fb7dc08720ab152bf3e68620

Commit: 3d47f32f0c603bf7fb7dc08720ab152bf3e68620

Tree: c025eb6a80177a6a51789dc676cc974da5fc3208

Author: Peter Tripp

Committer: GitHub

## Message

```
Add support for `editor::SwapSelectionEnds` everywhere (emacs exchange-point-and-mark) (#23428)

Add `editor:: SwapSelectionEnds ` action which swaps the cursor location from the beginning/end of a given selection.
Renamed from `editor::ExchangeMark` to `editor::SwapSelectionEnds`.
Unbound by default, bound to `ctrl-x ctrl-x` in Emacs keymap.
```

## Parents

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

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