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.


    Black Mamba - releases

    Pythonista
    5
    36
    22964
    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.
    • zrzka
      zrzka last edited by

      Since I have no other way how to inform users about new Black Mamba features, I decided to create this topic. I will only post info about new releases here. Nothing else, to keep it short.

      • Do you want to discuss something? Please, use the other topic (quite long now) or create a new one.
      • Do you want to see something in Black Mamba? Please, file an issue.
      • You fixed something? Please, create pull request.

      Thanks!

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

        Black Mamba 0.0.12 released:

        • Analyze shortcut renamed to Analyze & Check Style
        • Analyzer now runs both pyflakes & pep8 code style checks
        • Analyzer behavior can be modified via bm.settings.ANALYZER_* variables
        • Analyzer always scrolls to the first issue and does not show HUD
        • Analyzer shows HUD only if there're no issues
        • Cmd Shift K shortcut introduced - Clear Annotations
        1 Reply Last reply Reply Quote 0
        • zrzka
          zrzka last edited by

          Black Mamba 0.0.13 released:

          • flake8 checks on Travis CI (thanks to cclauss)
          • Fixed all style issues from flake8 report, down to zero now
          • Analyzer removes trailing white spaces & trailing blank lines before analysis is started (can be turned off via bm.settings...)
          • Fixed toggle comments script (#5)
          • Fixed file matching in Open Quickly... (#10)
          • Fixed Esc key code (27 = X, not Esc, Esc = 41) (#11)
          1 Reply Last reply Reply Quote 0
          • zrzka
            zrzka last edited by zrzka

            Black Mamba 0.0.14 released:

            • Since 0.0.14, the license was to changed to MIT
            • Seems no one does use PyPI for installation, .pyui files are now included :)
            • Comment line with # (hash space) instead of just # (#12)
            • Ctrl Tab (or Cmd Shift ]) selects next tab
            • Ctrl Shift Tab (or Cmd Shift [) selects previous tab
            • Cmd 1..9 selects specific tab

            EXPERIMENTAL

            Cmd U to run unit tests. Using pytest directly, because I'd like to add more unit tests features like - run unit tests for the whole package, file, test in a file, ... Works for the file now, but it has issues with some global states, reloading, ...

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

              Black Mamba 0.0.15 released:

              • Fix HUD message when there're no tests in the file
              • Removed unreliable PyPI package installation option
              • Removed package from PyPI
              • Custom installer alla StaSh
              • Removed settings module (moved to respective modules)
              • Removed script_picker.py (merged to file_picker.py)
              • Updated pythonista_startup.py sample
              • Pythonista version compatibility check

              Installation

              If you have already Black Mamba installed, remove it. Then open console, issue ...

              import requests as r; exec(r.get('http://bit.ly/get-blackmamba').text)
              

              ... and that's it. GitHub installation is not user friendly and PyPI doesn't work.

              Breaking Changes

              Check pythonista_startup.py sample how to configure Black Mamba a how to start it. You have to call main() and that's all you have to do. Minimum is:

              import blackmamba as bm
              bm.main()
              

              Why?

              • There's compatibility check with Pythonista and Black Mamba refuses to start (unless forced) with newer versions of Pythonista.
              • There's auto check for updates (daily, configurable, can be disabled). You'll be just informed with alert for now (till I write real updater).

              It's based on GitHub releases. These releases will be stable, master branch is not stable at all.

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

                Black Mamba 0.0.16 released:

                • Allow to start Black Mamba even in untested version of Pythonista, just warn the user
                • Init messages are colored (orange=warn, red=error)
                • All print messages replaced with log.info (.error, .warn)
                • bm.log.level allows to set logging level (default INFO)
                • Do not bother user (mainly me) with alert about new version (just use console) in case the Black Mamba is not installed via installer (git for example)
                • Tested with latest Pythonista beta (3.1.1 - 311008), everything works as expected

                You can install / update it with with:

                import requests as r; exec(r.get('http://bit.ly/get-blackmamba').text)
                
                Phuket2 1 Reply Last reply Reply Quote 0
                • Phuket2
                  Phuket2 @zrzka last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • zrzka
                    zrzka last edited by zrzka

                    @Phuket2 depends ... The only mandatory thing is to place GitHub's blackmamba folder into site-packages-3. That's it. The difference between git & installer is ...

                    git

                    • master branch is not stable, it can brake things
                    • can be workarounded by checkout of specific tag (v0.0.16, etc.)
                    • it doesn't tell you that there's new version available

                    installer

                    • stable releases
                    • it does inform you about new releases automatically (I do store installed version info in the ~/Documents/site-packages-3/blackmamba/.release.json) and check for updates regularly (during Pythonista startup)
                    • if there's a new version, you'll see iOS alert and then you can issue same command you did use for installation to update Black Mamba

                    You can look at updates.check for more details.

                    IMO installer is more friendly if you do not want to develop it, because I'm going to add updater as well.

                    I'll put PyPI back when it starts working, because this is the most preferred way of installation. Sadly it doesn't work.

                    Also, please, discuss in another topic, this is just for releases. See the first post. Thanks for understanding.

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

                      Black Mamba 0.0.18 released:

                      • Installation command is copied to the clipboard when the alert about
                        new version is shown. Just open console and paste it.
                      • system.Pythonista and system.iOS decorators to limit functions
                        execution under the specific Pythonista & iOS versions.
                      • 0.0.17 skipped, because this version was used for testing & fixing pip
                      • Outline Quickly... (Cmd Shift L) introduced

                      Outline Quickly mimicks Pythonista outline (Cmd L), but allows node filtering. On the other side, it does not contain annotations (yet).

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

                        Would it be possible to put this stuff into https://github.com/zrzka/blackmamba/releases ?

                        As someone who does not use an external keyboard with Pythonista, I find much of this discussion to be off topic. Is it just me or do others agree?

                        Phuket2 1 Reply Last reply Reply Quote 0
                        • zrzka
                          zrzka last edited by zrzka

                          I do not use Xcode Template for example, I find much of it to be off topic for me. Others do use Xcode Template, they don't consider it off topic, they're reading it, participating, ... So, I simply don't read Xcode Template related threads.

                          I understand that this thread can be off topic for some people, but for some of them not. Just don't read it as I or others don't read Xcode Template topics.

                          P.S. I have nothing against Xcode Template, it's just an example :)

                          1 Reply Last reply Reply Quote 1
                          • Phuket2
                            Phuket2 @ccc last edited by

                            @ccc , i dont agree. I normally agree with you. Sorry, in this case I dont. @zrzka has put a lot of effort into this and it works great. For those who use ext keyboards, its a gift from god. There are many subjects in Pythonista i have no interest in, I just skip them. No disrespect to you, but i think this is a great project. It's easy to skip over if you are not into it.

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

                              Black Mamba 0.0.19 released:

                              • Fixed unused import in action picker
                              • Compatibility check with 3.1.1 (311009)
                              • Introduced ide.scroll_to_line(line_number)
                              • Ctrl L Jump to line... added
                              • Cmd E to show Drag Provider (iOS 11 & iPad only)

                              What's the Drag Provider all about? See this video. You must have latest Working Copy beta, iOS beta and iPad. Otherwise it will not work for you.

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

                                using pip install blackmamba

                                and then run:

                                #!python3
                                
                                import blackmamba as bm
                                bm.main()
                                
                                

                                Error:
                                ImportError: No module named 'httplib'

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

                                  @wolf71 unfortunately, there's no pip3 in StaSh and Black Mamba is Python 3 only. As a workaround, you have to:

                                  pip remove blackmamba
                                  pip install blackmamba -d ~/Documents/site-packages-3
                                  

                                  And ...

                                  #!python3
                                  
                                  import blackmamba as bm
                                  bm.main()
                                  

                                  ... must be placed in the ~/Documents/site-packages-3/pythonista_startup.py file. Hope that helps. If not, please file an issue with more details (like how did you install it, which version was installed, pip installation console log, Pythonista version, default interpreter, ...). Thanks.

                                  And you have to use dev StaSh (selfupdate -f dev).

                                  P.S. Note the -3 suffix in installation path / python startup file path. Also I tried to reproduce your issue, but no luck (even if I change interpreter, omit -d in the pip command, ...).

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

                                    Black Mamba 0.0.21 released

                                    • Code cleanup (circular deps, ...)
                                    • Fixed analyzer where ignore_code=None means real None
                                    • Please, check sample pythonista_startup.py, breaking changes, sry
                                    • Config option to disable keyboard shortcuts registration

                                    It's basically clean up release, because it was quickly written, there were lot of circular deps, ... Also configuration of Black Mamba is done via dict, not via modifying module variables. And option to disable keyboard shortcuts was introduced, because I'm planning to add stuff which is useful even without external keyboard.

                                    How to update

                                    Pythonista console

                                    import requests as r; exec(r.get('http://bit.ly/get-blackmamba').text)`
                                    

                                    pip

                                    StaSh dev (selfupdate -f dev).

                                    pip remove blackmamba
                                    pip install blackmamba -d ~/Documents/site-packages-3
                                    

                                    pip update doesn't honor -d from previous pip install command. Will file an issue and fix this.

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

                                      BlackMamba 0.0.22 released:

                                      • Toggle comments improved
                                        • Honors both tabs and spaces
                                        • Indented # if line is indented
                                        • Shortest indent is used for all lines # if commenting multiple of them
                                        • Empty lines are ignored
                                      • Fixed ide.run_action when script_name starts with /
                                      1 Reply Last reply Reply Quote 0
                                      • zrzka
                                        zrzka last edited by

                                        BlackMamba 0.0.23 released:

                                        • Jump to definition (Cmd Shift D)
                                        1 Reply Last reply Reply Quote 0
                                        • zrzka
                                          zrzka last edited by

                                          Black Mamba 0.0.24 released:

                                          • blackmamba.keyboard module added
                                          • Pickers (open, script, ... quickly)
                                            • Do not focus search field if HW keyboard is not connected
                                            • Show title bar instead of custom title to allow users to close dialogs with X button
                                          • ide.scroll_to_line optimized
                                          • Toggle comments various fixes
                                            • Line is properly commented when there's inline comment
                                            • Uncommented line -> whitespaces only -> 'n'
                                            • More test coverage to avoid future bugs
                                          wolf71 1 Reply Last reply Reply Quote 0
                                          • wolf71
                                            wolf71 @zrzka last edited by

                                            @zrzka Thanks,it's work.

                                            can add cmd+up cmd+down to page up and page down?

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