omz:forum

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

    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 1
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    keimina

    @keimina

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

    keimina Unfollow Follow

    Latest posts made by keimina

    • Sharing a bit useful command.

      Sharing a bit useful command.

      I like Pythonista on iPad or iPhone retina display.
      It looks very beautiful and is very very powerful.
      So I use Pythonista as my default (programming)editor.
      I wrote some command script to speed up my editing(for debugging).
      And others may do the same thing.
      I think Pythonista users have own useful command.
      I think There is a lot of useful command that is not shared.

      Anyway I wrote a bit useful command script.
      The script summary, example and source code are following.

      Summary

      Command Name : Insert string
      How it works : See the example below

      Example

      Inserting 'XXX' to selected colnumn.

      aaaaa
      bbbbb
      ccccc
      ->
      aaXXXaaa
      bbXXXbbb
      ccXXXccc
      

      Source code

      Here

      That's all.
      But I want a template Markdown for sharing command script such like this.

      Sorry for my bad English skill.
      Thanks.

      posted in Pythonista
      keimina
      keimina
    • RE: Sharing a bit useful command.

      Sharing a bit useful command 3.

      Grep all files. Find files.

      Grep all files.(grep directory recursively)

      and

      Find all files.(find directory recursively)

      Summary

      Command Name : Grep all files
      How it works : Just use it

      Command Name : Find all files
      How it works : Just use it

      Example

      Sorry, no example. Just use it.

      Source code

      Here(Grep.py)

      and

      Here(Find.py)

      That's all.
      Thanks.

      posted in Pythonista
      keimina
      keimina
    • RE: How to import a bunch of functions I typed from within pythonista into another script

      Probabily your "a.py" may be "a.py.py"
      If so, Delete ".py" extension.
      Pythonista automatically add .py extension to its filename.

      posted in Pythonista
      keimina
      keimina
    • RE: How to import a bunch of functions I typed from within pythonista into another script

      'import' works propely in my enviroment.

      a.py

        def afunc():
          print 'afunc called'
      

      b.py

        import a
        a.afunc()
      

      Run b.py.
      It'll work.

      posted in Pythonista
      keimina
      keimina
    • RE: Sharing a bit useful command.

      Sharing a bit useful command 2.

      Deleting selected rectangle region.

      Deleting selected rectangle region that is between cursor.
      It's reverse of Insert string command above.

      Summary

      Command Name : Delete rectangle region
      How it works : See the example below

      Example

      Deleting 'XXX' selected region.

      aaXXXaaa
      bbXXXbbb
      ccXXXccc
      ->
      aaaaa
      bbbbb
      ccccc
      

      Source code

      Here

      That's all.
      Thanks.

      posted in Pythonista
      keimina
      keimina