[PR #6850] allow ctl-j to add a new line + fix multiline bracketed paste #74540

Open
opened 2026-05-05 06:40:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6850
Author: @pdevine
Created: 9/18/2024
Status: 🔄 Open

Base: mainHead: pdevine/newlines


📝 Commits (2)

  • 6f041dd allow ctl-j to add a new line + fix multiline bracketed paste
  • b8af12c feed the linter

📊 Changes

3 files changed (+22 additions, -5 deletions)

View changed files

📝 cmd/interactive.go (+15 -4)
📝 readline/errors.go (+4 -1)
📝 readline/readline.go (+3 -0)

📄 Description

This change allows users to use Ctrl-J to send a newline when typing in the terminal (the equivalent of Ctrl-Enter). It also fixes a glitch in bracketed paste mode if """ was part of the paste.

Fixes #3387 #6674


🔄 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/6850 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 9/18/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pdevine/newlines` --- ### 📝 Commits (2) - [`6f041dd`](https://github.com/ollama/ollama/commit/6f041ddfa453309e8872a539472e4bd3407d9dcd) allow ctl-j to add a new line + fix multiline bracketed paste - [`b8af12c`](https://github.com/ollama/ollama/commit/b8af12ceaf3475fc01a32d0b99aeb58f74e1f075) feed the linter ### 📊 Changes **3 files changed** (+22 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+15 -4) 📝 `readline/errors.go` (+4 -1) 📝 `readline/readline.go` (+3 -0) </details> ### 📄 Description This change allows users to use Ctrl-J to send a newline when typing in the terminal (the equivalent of Ctrl-Enter). It also fixes a glitch in bracketed paste mode if `"""` was part of the paste. Fixes #3387 #6674 --- <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 06:40:52 -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#74540