8000 Allow multi line prompt input from minibuffer · Issue #933 · karthink/gptel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow multi line prompt input from minibuffer #933
Open
@meain

Description

@meain

As of now, if I have to add a multi line input for directives or rewrite menu from minibuffer, I have to create it outside and paste. It might be worth it to support S-<return> to enter a newline instead of submit in the minibuffer for these inputs. I do something similar in yap, but not submitting a PR as I don't know if this has any side effects.

(let ((minibuffer-local-map (copy-keymap minibuffer-local-map)))
             (define-key minibuffer-local-map (kbd "S-<return>") 'newline)
             (read-string "Prompt: " nil 'yap-prompt-history (current-word)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0