# Alternate files with ctrl-6 \(\#11367\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 80d3eafa303cc4921cadcddf59f263e23f132da1

Requested commit: 80d3eafa303cc4921cadcddf59f263e23f132da1

Commit: 80d3eafa303cc4921cadcddf59f263e23f132da1

Tree: cc8f025ff26fdcc07d7af493ac540b672855fbf8

Author: Robert Falkén

Committer: GitHub

## Message

```
Alternate files with ctrl-6 (#11367)

This is my stab at #7709 

I realize the code is flawed. There's no test coverage, I'm using
`clone()` and there are probably better ways to hook into the events.
Also, I didn't know what context to use for the keybinding. But maybe
with some pointers from someone who actually know what they're doing, I
can get this shippable.

Release Notes:

- vim: Added ctrl-6 for
[alternate-file](https://vimhelp.org/editing.txt.html#CTRL-%5E) to
navigate back and forth between two buffers.



https://github.com/zed-industries/zed/assets/261929/2d10494e-5668-4988-b7b4-417c922d6c61

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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