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.


    Stash font size increase

    Pythonista
    3
    10
    5870
    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.
    • OI
      OI last edited by

      Is there a way to increase the font size of the Stash command line? Thanks

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

        The default font size is 12 for iPhone and 14 for iPad. To change the font size to 18 for an example, issue the following commands in StaSh:

        touch $STASH_ROOT/.stash_config
        
        edit $STASH_ROOT/.stash_config
        

        The second command opens up a file for edit, enter the following text:

        [display]
        TEXT_FONT_SIZE=18
        

        Now restart StaSh and the new font size will take effect.

        1 Reply Last reply Reply Quote 1
        • Webmaster4o
          Webmaster4o last edited by

          @ywangd Wow, what other config options are available for stash?

          ywangd 1 Reply Last reply Reply Quote 0
          • ywangd
            ywangd @Webmaster4o last edited by

            @Webmaster4o said:

            @ywangd Wow, what other config options are available for stash?

            Here is a full list of config options and their default values:

            [system]
            rcfile=.stashrc
            py_traceback=0
            py_pdb=0
            input_encoding_utf8=1
            ipython_style_history_search=1
            thread_type=ctypes
            
            [display]
            TEXT_FONT_SIZE=12
            BUTTON_FONT_SIZE=14
            BACKGROUND_COLOR=(0.0, 0.0, 0.0)
            TEXT_COLOR=(1.0, 1.0, 1.0)
            TINT_COLOR=(0.0, 0.0, 1.0)
            INDICATOR_STYLE=white
            HISTORY_MAX=50
            BUFFER_MAX=150
            AUTO_COMPLETION_MAX=50
            VK_SYMBOLS=~/.-*|>$'=!&_"\?`
            

            Some potentially useful options are:

            • py_traceback Print full trace information for errors
            • py_pdb Drop the user into a pdb shell when error is encountered (good for debug)
            • TINT_COLOR Cursor color
            • BUFFER_MAX Maximum number of lines to keep on the screen
            • VK_SYMBOLS The symbol buttons available in the virtual key row

            Currently any persistent changes to the configuration can only done via manually editing the configuration files (default to .stash_config or stash.cfg under stash installation root folder). I haven't got time to make an UI for the config options. But it is on my todo list.

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

              Thank you very much.

              What is the best/safe way to close the .stash_config file after finishing the edit?

              ywangd 1 Reply Last reply Reply Quote 0
              • ywangd
                ywangd @OI last edited by

                @OI said:

                Thank you very much.

                What is the best/safe way to close the .stash_config file after finishing the edit?

                It seems to me that Pythonista saves files opened in editor automatically when you perform any non-editing actions, e.g. close the file, swipe to console, swipe to file browser, launch editor actions. Essentially any changes will be just saved. You can simply re-launch stash after finish typing.

                OI 1 Reply Last reply Reply Quote 0
                • OI
                  OI @ywangd last edited by

                  @ywangd said:

                  @OI said:

                  Thank you very much.

                  What is the best/safe way to close the .stash_config file after finishing the edit?

                  It seems to me that Pythonista saves files opened in editor automatically when you perform any non-editing actions, e.g. close the file, swipe to console, swipe to file browser, launch editor actions. Essentially any changes will be just saved. You can simply re-launch stash after finish typing.

                  Great explanation, thanks a lot

                  PS. I am new to Pythonista, great software by the way

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

                    Is there a way in Stash to hide the keyboard (1 row), I am using and external keyboard, thanks

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

                      There is currently no way to hide the virtual key row without changing the source code. It is a legacy behavior from when we had no true external keyboard support. It is indeed no longer necessary. I'll make the changes later.

                      OI 1 Reply Last reply Reply Quote 0
                      • OI
                        OI @ywangd last edited by

                        @ywangd said:

                        There is currently no way to hide the virtual key row without changing the source code. It is a legacy behavior from when we had no true external keyboard support. It is indeed no longer necessary. I'll make the changes later.

                        Thanks

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