[PR #12587] [CLOSED] Multiline input #76175

Closed
opened 2026-05-05 08:40:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12587
Author: @oqpaa10a
Created: 10/12/2025
Status: Closed

Base: mainHead: multiline-input


📝 Commits (10+)

  • 3eab2b7 Auto-commit before changes
  • 21323e9 auto-commit for 91848a9f-8ff9-4584-aa77-02cedbfe0795
  • 670186a Auto-commit before changes
  • afe5442 auto-commit for cc0f766b-ad0b-498c-b9d7-5c73b9b23782
  • 2e6f14d Auto-commit before changes
  • c8e14f3 auto-commit for 4e8ba386-c983-4ca7-8d93-f2b0897775e9
  • b3b024d Auto-commit before changes
  • 9b48ef6 auto-commit for d6815aba-581a-4cec-a6e6-7589862d8f0a
  • 68f498c auto-commit for 29421e5d-63de-4461-847b-549f4cdc6ef1
  • b0f1df1 auto-commit for c5186cb2-5ed8-4e5e-b76e-00bc79a54cbb

📊 Changes

5 files changed (+463 additions, -0 deletions)

View changed files

MULTILINE_INPUT_IMPLEMENTATION.md (+143 -0)
TESTING_GUIDE.md (+165 -0)
📝 cmd/interactive.go (+4 -0)
📝 readline/readline.go (+59 -0)
verify_multiline_changes.sh (+92 -0)

📄 Description

Adds multi-line support like most platforms do when inputting text.

Currently the only way to add multi-line input to ollama cli is via pasting.

When interacting with the cli one would expect to be able to shift-enter for the next line when building prompts.

This patch providers shift-enter where supported and alt-enter for everywhere else.

HTH


🔄 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/ollama/ollama/pull/12587 **Author:** [@oqpaa10a](https://github.com/oqpaa10a) **Created:** 10/12/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `multiline-input` --- ### 📝 Commits (10+) - [`3eab2b7`](https://github.com/ollama/ollama/commit/3eab2b76f411c5521092918f3872bbc154db276c) Auto-commit before changes - [`21323e9`](https://github.com/ollama/ollama/commit/21323e974b27e3bad585b397111fbe93913b3399) auto-commit for 91848a9f-8ff9-4584-aa77-02cedbfe0795 - [`670186a`](https://github.com/ollama/ollama/commit/670186ae0c7d1b05bc718993371e5c7edddd2425) Auto-commit before changes - [`afe5442`](https://github.com/ollama/ollama/commit/afe5442405d33701094a45dbb3684c1665beb20b) auto-commit for cc0f766b-ad0b-498c-b9d7-5c73b9b23782 - [`2e6f14d`](https://github.com/ollama/ollama/commit/2e6f14d69a81b3dd97fbe0d4b1443320ac7015e4) Auto-commit before changes - [`c8e14f3`](https://github.com/ollama/ollama/commit/c8e14f3a98b9d8ccedb127183951e2344e536a73) auto-commit for 4e8ba386-c983-4ca7-8d93-f2b0897775e9 - [`b3b024d`](https://github.com/ollama/ollama/commit/b3b024d62ae8dd2628e04357ca4b65e7000c56f6) Auto-commit before changes - [`9b48ef6`](https://github.com/ollama/ollama/commit/9b48ef6b9cb542a4b69047d37d108e29bb6c6136) auto-commit for d6815aba-581a-4cec-a6e6-7589862d8f0a - [`68f498c`](https://github.com/ollama/ollama/commit/68f498ca68592b1fe8f4921714fd079cb71e768f) auto-commit for 29421e5d-63de-4461-847b-549f4cdc6ef1 - [`b0f1df1`](https://github.com/ollama/ollama/commit/b0f1df1fc82969134ab639259a9405a3d7f566e3) auto-commit for c5186cb2-5ed8-4e5e-b76e-00bc79a54cbb ### 📊 Changes **5 files changed** (+463 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `MULTILINE_INPUT_IMPLEMENTATION.md` (+143 -0) ➕ `TESTING_GUIDE.md` (+165 -0) 📝 `cmd/interactive.go` (+4 -0) 📝 `readline/readline.go` (+59 -0) ➕ `verify_multiline_changes.sh` (+92 -0) </details> ### 📄 Description Adds multi-line support like most platforms do when inputting text. Currently the only way to add multi-line input to ollama cli is via pasting. When interacting with the cli one would expect to be able to shift-enter for the next line when building prompts. This patch providers shift-enter where supported and alt-enter for everywhere else. HTH --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 08:40:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#76175