Welcome to the Pythonista Community Forums!

Pythonista is a Python programming environment for iOS. To learn more, head over to the Pythonista Website.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Action Menu Scripts - Delete/Select Line
  • Both of these are based on the editor module example in the documentation for commenting lines (http://omz-software.com/pythonista/docs/ios/editor.html). I was finding it hard to move code blocks around or remove lines with only white space, so I wrote these up and put them in my action menu.

    Select Line - https://gist.github.com/4048131
    Selects the line that the cursor is currently on. If multiple lines are already selected it will select to the start of the first line and end of the last line in the current selection. Once one line is selected you can easily add lines to the selection.

    Delete Line - https://gist.github.com/4048156
    Deletes the entire line the cursor is on, including the new line.
  • Nice! Not sure if you've seen this, but you can also select entire lines by tapping with two fingers. Btw, this works everywhere on iOS.
  • Wow, I did not know that... Doh
  • Other idea of two finger ...
    In an LaTeX editor, one can move the cusor with two fingers left an right as well as up and down
    In pythonista, placing the cursor at exacly a letter inside a word seems to be not possible? Therefor this post
  • You can slide with one finger across the extended keyboard rows to move the cursor in Pythonista (not up and down currently, but placing the cursor inside a word shouldn't be a problem).
  • Ah understood, thanks, I saw something about it in your help, but then there I did not get the meaning