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.
Feature request: code_folding
-
Sometimes, I have to read long codes. So if Pythonista could fold “if”, “while” or “def”, it would be very convenient.
Example:if a == 1:
print(True)
else:
print(False)
———————————-
[+] if a== 1: [...] -
@omz Please, it means a lot for me.
-
See:
https://github.com/omz/Pythonista-Issues/issues/206You can enable folding, then manually fold ranges, though it is not very automated.
-
It s*cks. I don't think it is convenient at all.
But anyway, thanks a lot. -
@omz I can pay no matter how much money for this feature.
-
@omz plz
-
Why not?
-
I could imagine cold folding could be tricky with out an external keyboard on a small device. I have been playing around with the hidden code folding, and that's what I have been finding... No room for a button that is re reliable yet unobtrusive... You are aware of the "outline" drop-down if you tap the filename, right? That lets you navigate large files by def/clase.
-
@JonB I just want the same naive feature as the IDE like VS code and pycharm on PC. I don’t need to control where should I begin and end the code-folding. Just fold the whole class or def or if or while.
-
what i mean is, where do you put the fold/unfold button, so that it is both reliable and unobtrusive. tiny screens and fat fingers are not the same as precise mouse clicks.
-
@JonB Fortunitly, I have the apple pencil.
-
lol so no one cares? All of u just write helloworld.py?