omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. sol144
    3. Posts

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by sol144

    • editor.set_selection behavior

      This code below works great using editorial. It will select text on given positions and scroll the page to the selected text.

      import editor
      # assuming the text >= 910
      editor.set_selection(900,910)
      

      However, if I run that code using pythonista the page only stay still and not scrolling automatically

      Is there any other way to scroll the page automatically to cursor position or selected text in pythonista?

      posted in Pythonista
      sol144
      sol144
    • RE: editor.set_selection behavior

      @JonB, wow thank you so much, case solved 😇

      import editor
      # assuming the text >= 910
      editor.replace_text(900,900,'')
      editor.set_selection(900,910)
      

      Thank you so much for providing answer and bonus information.

      posted in Pythonista
      sol144
      sol144