[PR #177] [MERGED] Support for Bracketed Paste #1130

Closed
opened 2026-03-14 09:19:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/177
Author: @kommander
Created: 9/22/2025
Status: Merged
Merged: 9/22/2025
Merged by: @kommander

Base: mainHead: bracketed-paste


📝 Commits (7)

📊 Changes

31 files changed (+371 additions, -75 deletions)

View changed files

📝 packages/core/docs/getting-started.md (+3 -3)
📝 packages/core/src/Renderable.ts (+27 -0)
📝 packages/core/src/ansi.ts (+4 -0)
📝 packages/core/src/examples/hast-syntax-highlighting-demo.ts (+2 -3)
📝 packages/core/src/examples/index.ts (+1 -2)
📝 packages/core/src/examples/input-demo.ts (+2 -3)
📝 packages/core/src/examples/input-select-layout-demo.ts (+2 -3)
📝 packages/core/src/examples/lib/standalone-keys.ts (+1 -2)
📝 packages/core/src/examples/scroll-example.ts (+1 -2)
📝 packages/core/src/examples/select-demo.ts (+2 -3)
📝 packages/core/src/examples/simple-layout-example.ts (+2 -3)
📝 packages/core/src/examples/slider-demo.ts (+2 -3)
📝 packages/core/src/examples/split-mode-demo.ts (+2 -3)
📝 packages/core/src/examples/sticky-scroll-example.ts (+1 -2)
📝 packages/core/src/examples/styled-text-demo.ts (+2 -3)
📝 packages/core/src/examples/tab-select-demo.ts (+2 -3)
packages/core/src/lib/KeyHandler.test.ts (+190 -0)
📝 packages/core/src/lib/KeyHandler.ts (+17 -11)
📝 packages/core/src/renderables/Input.test.ts (+23 -0)
📝 packages/core/src/renderables/Input.ts (+2 -2)

...and 11 more files

📄 Description

Note: The input renderable/element does not automatically insert pasted text. Needs to be captured and inserted. The input renderable will be backed by an EditBuffer soon that will handle paste properly. Check the solidjs input demo on how to hook it up.


🔄 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/177 **Author:** [@kommander](https://github.com/kommander) **Created:** 9/22/2025 **Status:** ✅ Merged **Merged:** 9/22/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `bracketed-paste` --- ### 📝 Commits (7) - [`303d9c7`](https://github.com/anomalyco/opentui/commit/303d9c7544a31d830a6b5099c396fb356f1c9c87) get rid of global key handler - [`893901f`](https://github.com/anomalyco/opentui/commit/893901f1fa6ef066747ba9abb355beb298a82392) add paste handler - [`1452d3b`](https://github.com/anomalyco/opentui/commit/1452d3b69fcd6c4cf8714aea3a6fffc169f96166) test cover key handler - [`827933d`](https://github.com/anomalyco/opentui/commit/827933d93e617cd2be21eead80f1e6b1ba2e5488) input onPaste callback - [`549993a`](https://github.com/anomalyco/opentui/commit/549993a8fcf51a0323ac3f22d6a38cfbd83acfa1) test solid hooks - [`c6ae09f`](https://github.com/anomalyco/opentui/commit/c6ae09f35146c47b58db79a14a970db1bbb4e647) test cover - [`02bb639`](https://github.com/anomalyco/opentui/commit/02bb639bcc2dc353f7fa5a6eba48fdddc3833e6e) rest of getKeyHandler usage removed ### 📊 Changes **31 files changed** (+371 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/docs/getting-started.md` (+3 -3) 📝 `packages/core/src/Renderable.ts` (+27 -0) 📝 `packages/core/src/ansi.ts` (+4 -0) 📝 `packages/core/src/examples/hast-syntax-highlighting-demo.ts` (+2 -3) 📝 `packages/core/src/examples/index.ts` (+1 -2) 📝 `packages/core/src/examples/input-demo.ts` (+2 -3) 📝 `packages/core/src/examples/input-select-layout-demo.ts` (+2 -3) 📝 `packages/core/src/examples/lib/standalone-keys.ts` (+1 -2) 📝 `packages/core/src/examples/scroll-example.ts` (+1 -2) 📝 `packages/core/src/examples/select-demo.ts` (+2 -3) 📝 `packages/core/src/examples/simple-layout-example.ts` (+2 -3) 📝 `packages/core/src/examples/slider-demo.ts` (+2 -3) 📝 `packages/core/src/examples/split-mode-demo.ts` (+2 -3) 📝 `packages/core/src/examples/sticky-scroll-example.ts` (+1 -2) 📝 `packages/core/src/examples/styled-text-demo.ts` (+2 -3) 📝 `packages/core/src/examples/tab-select-demo.ts` (+2 -3) ➕ `packages/core/src/lib/KeyHandler.test.ts` (+190 -0) 📝 `packages/core/src/lib/KeyHandler.ts` (+17 -11) 📝 `packages/core/src/renderables/Input.test.ts` (+23 -0) 📝 `packages/core/src/renderables/Input.ts` (+2 -2) _...and 11 more files_ </details> ### 📄 Description Note: The input renderable/element does not automatically insert pasted text. Needs to be captured and inserted. The input renderable will be backed by an EditBuffer soon that will handle paste properly. Check the solidjs input demo on how to hook it up. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:19:58 +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#1130
No description provided.