Forum Archive

Sharing a bit useful command.

keimina

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.

keimina

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.

keimina

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.