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.
Search text in your scripts via new Find in popup menu
-
@mikael I accept always a beer, but, in this case, why?
-
round for everyone πΊπ»
-
@stephen Iβd be downπ And all of you would deserve one for answering all of my countless (and sometimes maybe a bit stupid) questions
-
@Drizzel π€ never a Stupid Question you should question everything!
anyone can be smart.. but intellect is what carves the wheel βΊοΈπ
-
When the scan of sources takes a long time, for several reasons like
- you have a lot of scripts with a lot of lines
- your iDevice is old and slow, like my iPad mini 4
- a lot of scripts contain the searched text,
you see the popup menu during a long time before the TableView of sources becomes visible.
As adviced by @JonB, I've modified the script to process the scan in a background thread while the TableView is already visible. Names of all files containing the searched text are appended to the TableView one by one.
Even if the scan is not yet finished, you can already select one to display it, while the scan continues in background.
When you come back, you would see the list eventually I ncreased.
A clock in the title bar of the TableView is visible while the scan is active, and is removed when the scan is finished.
If you close the TableView, the background thread is forced to terminate even if the scan was not yet finished.New version is here
-
I'have Γ bug when I come back in Pythonista from another app.
If I try to find, the my_thread class does not exist any more.
Sorry, I'l try to correct thatEdit: Corrected, I hope, thanks to retain_global but problem was not reproductible on demand, thus ....π€
-
@cvp said:
- your iDevice is old and slow, like my iPad mini 4
Love that lineπ
I use an iPad mini 2 base model (16gb), and itβs sloooow. Iβm currently saving for a new one... and since Iβm still in school (17yo) that might take some time.So an iPad mini 4 isnβt really a reasonable upgrade? Because that was what I was aiming for
-
-
@Drizzel said:
So an iPad mini 4 isnβt really a reasonable upgrade
Sure it is. I have always been happy with it but a newer is quicker π
It is a question of price/advantage.Don't forget I'm retired then I pass perhaps too much time with this machine.
Assume I spend 6 hours per day and that I buy a new device 2 x quicker, I will only spend 3 hours per day π -
@cvp said:
Assume I spend 6 hours per day and that I buy a new device 2 x quicker, I will only spend 3 hours per day π
π Im Writing/art on mine probably close to 12-16 hours a day
-
@stephen I use it more than 6 hours, but π€«, my wife doesn't know it π
It was only a joke on the number hours = f(1/cpu speed) -
@cvp π ππ legiondary
-
-
@Drizzel my iPad after a long cpu consuming run, but it is ok now. I always have a glass of water ready
-
-
I had discovered that if you search in your scripts a text containing long Unicode characters, the range of the selected text was erroneously computed. @jonB did find a corrected way to extract the selected text and thus, his customMenuItem.py module should be corrected. You will find my own version here new customMenuItem.py