gitui-org / gitui-org/gitui

Faster horizontal scrolling

Open
#1,917 1 comment 2 reactions 0 assignees View on GitHub
feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Horizontal scrolling with / in a diff is a tad slow.

> [!IMPORTANT]
> GIF speed: **2x** (for a faster demo)
> ![scroll2](https://github.com/extrawurst/gitui/assets/92653266/19abf6ed-7549-4c7a-a234-84cf18e3f04e)

**Describe the solution you'd like**
Allow the use of Home and End keys for horizontal movement, similar to how PgUp and PgDn are used for vertical movements.

| Gitui | Full-Sized Keyboard | MacBook | Description |
| ----- | ------------------- | ---------------------------- | ------------------------------------ |
| ❌ | Home | fn + | takes you to the beginning of a line |
| ❌ | End | fn + | takes you to the end of a line |
| ✅ | PgUp | fn + | takes you to the top of the page |
| ✅ | PgDn | fn + | takes you to the bottom of the page |

**Describe alternatives you've considered**
I noticed that holding down the / keys in the `Log [2]` viewer accelerates the movement after a few seconds. This could be a useful alternative for holding / in a diff.

**Additional context**
- the idea to use PgUp / PgDn was conceived in #1447
- horizontally scrolling a diff came with PR #1327

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.