[PR #372] [MERGED] fix(core): wrap line-home/end at line boundaries, cmd-left and cmd-right do not get stuck at line start and line end on macOS #490

Closed
opened 2026-03-02 23:46:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/372
Author: @remorses
Created: 12/1/2025
Status: Merged
Merged: 12/8/2025
Merged by: @kommander

Base: mainHead: fix/line-home-end-wrap


📝 Commits (4)

  • 7f9bc8d fix(core): wrap line-home/end at line boundaries like macOS Cmd+Left/Right
  • 6ea381e Merge branch 'main' into fix/line-home-end-wrap
  • 436be5e style: apply prettier formatting to test files
  • bb15a1a Ran prettier 3.6.2, formatted 1 file

📊 Changes

2 files changed (+59 additions, -18 deletions)

View changed files

📝 packages/core/src/renderables/Textarea.ts (+16 -2)
📝 packages/core/src/renderables/__tests__/Textarea.keybinding.test.ts (+43 -16)

📄 Description

  • gotoLineHome at col 0 now wraps to end of previous line
  • gotoLineEnd at EOL now wraps to start of next line
  • Stays at buffer boundaries (first/last line)

Matches macOS Cmd+Left/Right behavior - you can hold the key to quickly navigate through lines.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/372 **Author:** [@remorses](https://github.com/remorses) **Created:** 12/1/2025 **Status:** ✅ Merged **Merged:** 12/8/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/line-home-end-wrap` --- ### 📝 Commits (4) - [`7f9bc8d`](https://github.com/anomalyco/opentui/commit/7f9bc8da9bc6b6b57fc8ab4799ea0c42ebe83dc3) fix(core): wrap line-home/end at line boundaries like macOS Cmd+Left/Right - [`6ea381e`](https://github.com/anomalyco/opentui/commit/6ea381ebda4a76f1489fa679f09142b400d2353d) Merge branch 'main' into fix/line-home-end-wrap - [`436be5e`](https://github.com/anomalyco/opentui/commit/436be5edc4ed9631117b7443ed394dc94b8d72ae) style: apply prettier formatting to test files - [`bb15a1a`](https://github.com/anomalyco/opentui/commit/bb15a1aa489f7abcd24c293b3405045ab779951c) Ran prettier 3.6.2, formatted 1 file ### 📊 Changes **2 files changed** (+59 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Textarea.ts` (+16 -2) 📝 `packages/core/src/renderables/__tests__/Textarea.keybinding.test.ts` (+43 -16) </details> ### 📄 Description - gotoLineHome at col 0 now wraps to end of previous line - gotoLineEnd at EOL now wraps to start of next line - Stays at buffer boundaries (first/last line) Matches macOS Cmd+Left/Right behavior - you can hold the key to quickly navigate through lines. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#490
No description provided.