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.


    comment/uncomment not working

    Pythonista
    2
    3
    1806
    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.
    • lsloan117
      lsloan117 last edited by

      I copied the comment/uncomment program from the editor module documentation. I saved it with the name "Toggle Comment", then added it to the actions menu. Whenever I select text to comment out, then tap the button for this program, it never comments the selected text. Instead, it highlights the title of the current program, as if I had tapped the rename file feature. The only time I've gotten this program to work is when I run it on itself, using the run button instead of the Actions Menu.

      Why won't it run on the text in the editor? I'm using a recent version of Pythonista with iOS v5.1.1.

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        This is a bug with the current iPhone version, the first item in the action menu renames the current script instead of executing the script. For now, you can work around this by adding a "dummy" script to the action menu, so that the script you actually want to use ("Toggle Comment") doesn't appear as the first action.

        1 Reply Last reply Reply Quote 0
        • lsloan117
          lsloan117 last edited by

          Thanks, @omz. That worked fine. I made a do-nothing program named " (Rename File)" with a leading space in the name so it would appear first.

          Will this be fixed in the next version? Any plans for when that might be released?

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