omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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?

    Pythonista
    1
    1
    928
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Rakhir
      Rakhir last edited by

      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**2

      and I wanted to edit it to be:

      def f(x):
      x += 1 # <<< This is the line I want to insert
      return x**2

      I 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!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors