Faster horizontal scrolling
- Vorherrschende Sprache
- Rust
- Sterne
- 22.5k
- Forks
- 774
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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)
> 
**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
Beitragsleitfaden
Rechercherichtung
Beginne damit, die durch PR #1327 eingeführte Implementierung des horizontalen Scrollens im Diff und die im Issue referenzierte bestehende Tastenbehandlung für PgUp/PgDn zu finden. Füge anschließend das Verhalten von Home und End für die horizontale Bewegung im Diff hinzu und überprüfe dann, dass die Tasten die Zeilengrenzen erreichen, ohne das bestehende Scrollen zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, rust
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 67/100