• Matteo

    @cvp Hi, sorry I'm feel very unskilled, no objc problem, I must use Python3, no Python2...

    Problem solved!

    Sorry I ask you :when you touch built-in key Clear in console do you have the clear of full console content and the color red of last highligthed text?

    Thanks

    posted in Pythonista read more
  • Matteo

    @cvp Hi thanks for reply, with Pythonista I use (v.3.1 301016) on ios 10.3.3 I have different behavior from you , that is when I touch Find key , the previous highligtings can't disappear (text become red and more red...). Maybe it is due to different objc implementation of new version of Pythonista.

    I will try again , if I will notice some different behavior I will let you know.

    Thank you
    Regards

    posted in Pythonista read more
  • Matteo

    Hi @cvp, thanks again for your code, it helps me a lot! I tried to change it in order to clear highlighting of the text before each touch of the "Find" button, because if I search different words, the console becomes too colored and I can't understand where the last word is selected.

    If you want and have time, can you show me how to change your code in order to remove all highlighting before each touch of your "Find" user key?

    Thanks
    Bye

    posted in Pythonista read more
  • Matteo

    @cvp no no, I badly explained myself sorry, I meant I see your button search at left, at right I see the built-in recall command icons and the execute command is the return key of keyboard, yes sorry. I'm excited...

    posted in Pythonista read more
  • Matteo

    @cvp Yes! you are right, sorry, two buttons on console line! You created a second button at left of input line, Thank you again!

    posted in Pythonista read more
  • Matteo

    @mikael Hi, I still use Pythonista version 3.1 (I have an old iphone with ios 10.3.3) and it is a great software, I find it very exciting to think that user can even customize the interface of this application as you wish, if knows how to do it ;-)

    Pythonista is Great!

    posted in Pythonista read more
  • Matteo

    @cvp Hi, I haven't tried it yet your code but it is impressive! Thank you :-)

    I sometimes feel that there is a possibility to do something with programming, but every time I see that one of you programmers really manages to do it, I am fascinated.

    I want to try your code by saving it in the StatusBarMenu (by JonB) as an action to run with the little buttons of it. So my dream is to associate your script to a user key of StatusBarMenu in order to enable/disable the search text function.
    So do you know if it is possible to disable your search function (with a click) if user wants to return to use the console to run python commands instead of to search text?

    Thank you very much
    Regards

    posted in Pythonista read more
  • Matteo

    @cvp Hi, do you mean OMxxxxx is something related to omz library, not Apple?

    However, if it is programmatically impossible to interact with console output via objc, do you know something for pythonista_startup.py that can automatically save in a file (named for example console_output.txt) the output of any command executed in console or any script executed from editor environment, in a consecutive mode, in the same way the output in console appears? This file should contain the exact text user sees in console output/history, and this file should update itself after each execution where there is at least one print statement (that is when the console output changes its content by adding new text output).

    Do you know if something already exists?

    Thank you
    Bye

    posted in Pythonista read more
  • Matteo

    Hi @cvp , thank you so much for your time but don't worry, don't search for me, only if it is also your interest, no problem, really :-).
    My interest is if a code already exists that can search text in console, when there is a lot text in it and user doesn't want to search some specific words by scolling down the screen.

    I will try to search in official Apple doc about some obj-c for interaction with OMTextView. Maybe I will find something here (found now).

    Thank you for your always lively kindness in answering in this forum!
    Regards

    posted in Pythonista read more
  • Matteo

    @cvp Ok, thank you for your reply, so I understand that console has not a Find field like the editor and by using your code user can keep track of what has been written in console, but the problem could be how to keep track of what has been written directly from script execution (so from editor, not from console).
    However do you know some obj-c method to interact with Pythonista console (in this specific case with history of the console, not with input editable line of console environment)?

    Thanks

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!