[PR #14197] [MERGED] feature: add ctrl-g to allow users to use an editor to edit their prompt #45810

Closed
opened 2026-04-25 01:26:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14197
Author: @pdevine
Created: 2/11/2026
Status: Merged
Merged: 2/11/2026
Merged by: @pdevine

Base: mainHead: pdevine/cli-editor


📝 Commits (4)

📊 Changes

7 files changed (+124 additions, -1 deletions)

View changed files

📝 cmd/cmd.go (+1 -1)
cmd/editor_unix.go (+5 -0)
cmd/editor_windows.go (+5 -0)
📝 cmd/interactive.go (+65 -0)
📝 envconfig/config.go (+2 -0)
📝 readline/errors.go (+1 -0)
📝 readline/readline.go (+45 -0)

📄 Description

This change allows users in the interactive CLI to press Ctrl+G and enter their prompt into an editor of their choice.


🔄 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/14197 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/cli-editor` --- ### 📝 Commits (4) - [`f2279f9`](https://github.com/ollama/ollama/commit/f2279f9a9d0b7e8834e30600d793ee84484aae71) feature: add ctrl-g to allow users to use an editor to edit their prompt - [`8c81d29`](https://github.com/ollama/ollama/commit/8c81d29582d1cc3b21282d8f3ac82a97dcc731a8) default editors - [`93d5e3f`](https://github.com/ollama/ollama/commit/93d5e3f72878da3d75334a6d1bce0f6a10e9e09f) comments - [`fa70fd1`](https://github.com/ollama/ollama/commit/fa70fd14b2fdec895876411ea2c2f6182437f9d6) typo ### 📊 Changes **7 files changed** (+124 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+1 -1) ➕ `cmd/editor_unix.go` (+5 -0) ➕ `cmd/editor_windows.go` (+5 -0) 📝 `cmd/interactive.go` (+65 -0) 📝 `envconfig/config.go` (+2 -0) 📝 `readline/errors.go` (+1 -0) 📝 `readline/readline.go` (+45 -0) </details> ### 📄 Description This change allows users in the interactive CLI to press Ctrl+G and enter their prompt into an editor of their choice. --- <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-04-25 01:26:31 -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#45810