omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Sharing a bit useful command.

    Pythonista
    1
    3
    1750
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • keimina
      keimina last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • keimina
        keimina last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • keimina
          keimina last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors