omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. jmmelko

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    jmmelko

    @jmmelko

    0
    Reputation
    413
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    jmmelko Unfollow Follow

    Latest posts made by jmmelko

    • RE: Find in files script?

      @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())
      
      posted in Pythonista
      jmmelko
      jmmelko
    • RE: Find in files script?

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

      posted in Pythonista
      jmmelko
      jmmelko
    • Dark mode: missing setting for error background

      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:

      • add a setting for the font color displayed in the error pop up boxes
      • add a setting for the background color of the error boxes, different from the editor background
      • (if I missed something, then when the app suggests a default custom dark-like theme the colors should be correct)

      Thank you.

      posted in Pythonista
      jmmelko
      jmmelko
    • RE: How do you install modules into the app

      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.

      posted in Pythonista
      jmmelko
      jmmelko
    • Find in files script?

      Hi,

      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!

      posted in Pythonista
      jmmelko
      jmmelko