
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
get-multiline-input-with-editor
Advanced tools
Opens a text editor for multi-line input, returns input as a Unicode string. Just like what Git does.
Opens a text editor for multi-line input, returns input as a Unicode string. Just like what Git does.
get-args-to-launch-editorpip install get-multiline-input-with-editor
from get_multiline_input_with_editor import get_multiline_input_with_editor
result = get_multiline_input_with_editor(
unicode_initial_input=u"Write something...",
unicode_prompt_at_bottom=u"# Enter your text above. Lines starting with # will be ignored.",
unicode_line_comments_start_with=u"#",
editor=None # or specify e.g. 'vim'
)
print(result)
Assuming nano is the default editor, the user will see something like this:
GNU nano 7.2 /tmp/tmp9khfi5es.txt
Write something...
# Enter your text above. Lines starting with # will be ignored.
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location M-U Undo M-A Set Mark
^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^_ Go To Line M-E Redo M-6 Copy
Afterward, if the user enters some text, print(result) basically prints whatever the user entered, minus the comments.
Contributions welcome! Please open issues or pull requests on GitHub.
This project is licensed under the MIT License.
FAQs
Opens a text editor for multi-line input, returns input as a Unicode string. Just like what Git does.
We found that get-multiline-input-with-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.