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 updates - Unified I/O UI, external keyboard support and more

    Pythonista
    9
    28
    20211
    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.
    • JonB
      JonB last edited by

      Also, in gitview, be sure to select remote before pressing push.

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

        I think you can only capture keyboard events inside a textview, using the delegate methods. Specifically, you can look for specific types of cursor movement.

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

          @ywangd - thank you so much for the detailed explanation. I believe that the reason I am not seeing correct behavior for cmd-up/down is that my keyboard is a relatively old Logitech Ultrathin. It has fn, ctrl, option, cmd and the arrow keys but they do not seem to produce all the correct codes for ios. I have to use the fn keys for select, cut, copy, paste. Arrow keys work fine. Probably should upgrade to a newer model.

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

            @polymerchm, this proof of concept I wrote demonstrates how external keyboard input can be detected. The only problem is that the cursor needs to stay inside a text field all the time, if something else is focused no more keyboard inputs are handled. You'd also need to somehow detect whether someone is using an external keyboard (which I don't think is possible) and disable the text field if they don't - otherwise the on-screen keyboard would display and cover half of your app.

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

              @dgelessus and @ywand - thanks for reminding me about the keyboard proof of concept app. I used it to check my keyboard and the POC correctly detects cmd-up/down with my keyboard. This lead me to just grab the absolute latest copy of stash. It turned out I was running one from the dev branch. The latest one works just fine. Sorry for the false alarm user error.

              Also - I noticed that the latest update keeps the history pane updated in real time. Very nice.

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

                How can I download a file with stash?

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

                  if you mean from github, here's an example:

                  $ cd Documents<br>
                  $ mkdir chordcalc<br>
                  $ cd chordcalc<br>
                  $ git clone https://github.com/polymerchm/chordcalc.git<br>

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

                    To download a single file, use wget. Use the -o option to specify the destination file name, otherwise it will download to the clipboard:

                    wget http://www.example.com/path/to/file -o file.py
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB Forums | Contributors