-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[PT] For new line insertion. #9401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think I already asked about this in the comments of a previous issue, and the answer was no, there's no other modifier+enter we can detect. Ctrl+Enter also works to force execution, but it is detected the same as esc+enter. |
This is indeed a limitation of the vt100 protocol. Control-Enter is the same as Enter. |
(Oh right, I mis-spoke about Ctrl-Enter - it is Alt-Enter that forces execution) |
What about using |
On english keyboard :-) IIRC (haven't tried in a while) it's Alt-Shift-Slash on Mac-French, and AltGr-8 on Windows-French for example. |
On American keyboards. On really English keyboards, it's in the bottom left, beside shift. That's actually quite convenient to chord with Ctrl, though. However, at least on my system, Ctrl+backslash is already in use to suspend and background a process (i.e. start IPython, hit Ctrl-, you're back in bash. Type How about Ctrl-N? That's not used for anything on my system. |
I believe some people like to make new windows for their terminal. I'm not sure a "force new line" is that useful. And we'll figure out a way to make that configurable. |
Do we know of any system where Ctrl-N makes a new terminal window? On the Linuxes I use, application shortcuts that would be I agree that force-new-line is not essential, though - we have lived without it for years, after all. |
FWIW, KDE's konsole passes shift-enter as the three characters(??) "OM", so that could work perhaps? (even if not available on all terminals) |
Currently in prompt toolkit, Esc-Enter force execution, is there a way to get "force" a new line with a shortcut like Shift-Enter ?
I know there is already Ctrl-O to add a line without moving the cursor but a
<modifier>-<enter>
seem more natural.Ping @jonathanslenders the PT master.
The text was updated successfully, but these errors were encountered: