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
-
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.
-
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.
-
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?