Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How do you insert new lines in the console editor?
-
I’m using Pythonista 3.3 test drive on an iPad Pro 2018 with the Apple keyboard. For the most part it works well, but I cannot seem to edit a previous entry and insert a new line. For example, if I had already entered:
def f(x):
return x**2and I wanted to edit it to be:
def f(x):
x += 1 # <<< This is the line I want to insert
return x**2I can’t seem to figure out how to do it. I have tried “return”, “command+return”, “shift+return”, “control+return” and probably others, but nothing seems to work. Am I missing something? The obvious workaround is multi-statement lines, but that isn’t very elegant (or PEP-8ish).
Also, while you are still working on this next release, would you consider swapping the up/down arrows on the keyboard to line navigation and the command+up/down to scrolling through previous edits? For me, at least, the current mapping is confusing and I frequently end up losing an edit by accidentally trying to navigate up or down.
Regard!