# Add keybindings to jump to first / last file in project panel \(\#11073\) · gitcafe/zed

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

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

Visibility: public

Requested revision: adcaa211ecf4794171681efff490fa7687c31605

Requested commit: adcaa211ecf4794171681efff490fa7687c31605

Commit: adcaa211ecf4794171681efff490fa7687c31605

Tree: 9ee75780722275ce0d845aebcc880044d65355e3

Author: blufony

Committer: GitHub

## Message

```
Add keybindings to jump to first / last file in project panel (#11073)

Release Notes:
- vim: Support `g g`/`G` to go to top/bottom of the project panel.

In vim type environments i usually expect to be able to jump to the top
and bottom and i was confused as to why that wasn't possible in the
project panel. So i added it. If anyone using different keymaps also
thinks this might be useful i would be happy to add other defaults. I
think for vim mode it is the most useful though, because you tend to not
use your mouse in vim mode.

This is my first contribution to any rust project, but it seemed like a
good starting point.
The function select_last() is inspired by select_first.
I was also thinking about adding a bigger jump keybinding, that would
jump for example 5 entries up / down, with vim default keybindings "{" /
"}".
FYI: I tested this on linux only and don't have access to any macos
machines.


- N/A
```

## Parents

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

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