@cvp thank you very much. I have added your script as a wrench tool. I just modified the last lines to get a more visual-friendly output to:
print('\n%%%Found in ' + repr(file)+':') print('l.'+str(i)+':',line.strip())
@JonB thank you very much for your comprehensive answer.
Search/replace within a file is already/part of the editor. There is a little switch to switch from find only to find/replace.
Honestly, I can’t find it. Where is it located?
There are context menu options to comment or indent a section of code, iirc.
They exist for indenting, not for commenting.
I am using Pythonista in an iPhone,
and I fear that some options available on iPad have been disabled on iPhone due to a lack of space.
Ok.... so OMZ seems to be soo proud of his new dark theme(s), but ooopsy doo, he forgot something:
If I create a custom theme, with a black editor background, and use it as a day theme (as suggested by the app), then when errors are prompted (in that little pop up window with the pink top bar), the text does not show.
The reason is that error boxes use the iOS font, which is black during daytime. Black on black...
Bug corrections suggested:
just to mention that I have managed to install the mido module in Pythonista after installing stash first.
I was amazed that it could work without breaking any of Apple API policies!
Actually the hardest part was to find launch_stash.py, which was in « This iPhone » and not in « Python modules/site-packages » as are the other Stash files.
has anyone written a « find in files » script for Pythonista?
Basically a script that would search .py or text files within a folder and return results in the console.
The first few weeks after installing Pythonista, I was astonished not to find many of the basic functions of most script editors, such as « comment line(s) », and « Find/Replace ».
After searching this forum and the web, I finally found what I needed, but it took me some time, and I was quite surprised that these scripts were not stored in an organized place. The search feature of this forum is not very efficient for that purpose.
If anyone could help me, I would give him... all my gratitude!