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
-
Black Mamba 1.1.0 released:
- Dropped PyPI packaging
- Black Mamba provides own / updated modules to provide new functionality
- This is not compatible with
pip
at all, thus this installation method is no longer supported - Latest Black Mamba release in PyPI is 1.0.2
- Find usages contains symbol name in the dialog title
- Jump to definition contains symbol name in the dialog title
- Show documentation contains symbol name in the dialog title
tab.open_file
has newline
argument- Jump to definition, Find usages utilizes
tab.open_file
instead ofeditor
's one
- Jump to definition, Find usages utilizes
- Analyze script does use bundled
flake8
,mccabe
, ...- See documentation to check how to configure it
- First pass defaults are
['--select=E901,E999,F821,F822,F823']
- Second pass defaults are
['--max-complexity=10', '--max-line-length=127']
- Open quickly, ... filter is case insensitive
P.S. This bundled
flake8
, ... means that you can analyze your code even with f-strings likef'Hallo {sender.title}'
, etc. - Dropped PyPI packaging
-
Is it possible for the users who do not have external keyboard to use the sidebar menu (see the link below) for running your scripts?
https://forum.omz-software.com/topic/3543/share-in-work-side-bar-replacement -
Black Mamba 1.2.0 released:
.uikit.overlay
introduced which allows Black Mamba to display information as overlays- Overlays are Pythonista app overlays (visible in editor, console, ...)
.ide.theme
introduced to get some theme functionality- Show documentation script leverages new overlays
- Overlay can be closed via
Ctrl W
shortcut - Overlay can be moved (title bar)
- Overlay can be resized (drag bottom left/right corner)
- Script is configurable, see docs
- See screenshot (reuse disabled)
- Overlay can be closed via
P.S. If you don't see a new screenshot in the gallery (one with overlays), just force reload the page / image.
@enceladus please, use another topic for questions (see first post). Thanks. I don't know what the sidebar menu is, but I also don't see a reason why it wouldn't be possible. Just run them in the same way as Black Mamba does.
-
Black Mamba 1.2.1 released:
- Bundled packages links and licenses
ide.run_script
respectsdelay
argument (did contain hardcoded value)- Analyze script documentation mentions
flake8
- Drag & Drop script
- Children nodes are lazy-loaded (faster)
- Dropped folder reloads ...
- Target row if not expanded (to display triangle)
- Children nodes (dropped folder appears if it didn't exist before drop)
- Show documentation
- Do not show picker / docstring if symbol was found, but it has no docstring
-
Black Mamba 1.2.2 released:
- Bundled
lib/pep8
removed, unused - Fixed
get_actions
(exception when user has no custom actions) - Pythonista 3.1.1 (311013)
- Compatibility check with 311013
- Shortcuts
Cmd W
,Ctrl Tab
,Ctrl Shift Tab
no longer work (1) - Shortcuts
Cmd 1..9
,Cmd Shift ]
,Cmd Shift [
,Cmd Shift W
still work
(1) Pythonista 311013 provides these shortcuts natively. Unfortunately, they do not work. Also these shortcuts are provided elsewhere in the responder chain, so, even if I register them via the Black Mamba, responder chain catches them sooner then Black Mamba and they do not work.
All these shortcuts do work prior to 311013. If you have 311013 installed, you can use
Cmd Q
to close tab (temporary) andCmd Shift ]
/Cmd Shift [
to show next / previous tab.P.S. User documentation is not updated (for
Cmd Q
), because it's a temporary workaround. I do expect that these shortcuts (Cmd W
, ...) will be fixed in the Pythonista and thenCmd Q
will be removed. - Bundled
-
Black Mamba 1.3.0 released:
- Pythonista 3.1.1 (311014)
- Compatibility check with 311014
- Shortcuts
Cmd W
,Ctrl [Shift] Tab
work
- Trashed
Cmd Q
shortcut (workaround for 311013) - Open Quickly supports File System Provider bookmarks
- You can search / open files added to Pythonista via
Open...
(External files) - These files are added as bookmarks (iOS terminology)
- If cell subtitle starts with
Documents
, it's a file from~/Documents
- If cell subtitle starts with
Bookmark
, it's a file from FSP
- You can search / open files added to Pythonista via
- Pythonista 3.1.1 (311014)
-
Blackmamba 1.3.2 released:
- Fixed exception when there's empty tab opened (#30)
- Open quickly selects proper tab when the file is already opened
and empty tab exists as well - Compatibility check with 311015
Cmd-Shift-]
,Cmd-Shift-[
registered only in Pythonista < 311015- These shortcuts are natively supported
- flake8-3.5.0, pyflakes-1.6.0
- Bare exception check
- Ambigious identifier check
-
Black Mamba 1.4.0 released:
- Fixed keyboard shortcut selector name generator
- Bundle
refactoring
introduced (includesrope
) - Refactoring functions introduced
- It's an EXPERIMENT. You should use version control system to avoid loosing data.
Cmd Option O
- Organize importsCmd Option E
- Expand star importsCmd Option R
- Rename identifier- Can be used as scripts as well, see
script/refactoring
folder - Preview dialog can be closed with
Cmd .
/Esc
, confirmed withEnter
- Scroll back to initial cursor location if analyzer didn't find an issue, ugly, but better than end of the file
NOTE: As mentioned, refactoring is an experiment. It does use
rope
internally, but it seems that therope
is unable to cope with built-ins, etc. (in case of expand star imports). Rename and organize imports works. Here's the screenshot if you'd like to check it. Use with caution. -
Black Mamba 1.4.1 released:
- Compatibility check with 3.1.1 (311016)
- Bundle
refactoring
enhanced withfuture
,libfuturize
,libpasteurize
modules script/refactoring/futurize.py
introduced (see Python Future)- Equivalent of
futurize -1 --all-imports -n -w --add-suffix 3 $editor.get_path()
(Stage 1 only) - When futurizer ends, editor text is replaced with content of the
.py3
and.py3
is trashed - You can run futurizer script with
Cmd Option F
- Equivalent of
- Improved updates check
- Console is not cluttered with local / latest release info (installer prints this)
- Update
check()
doesn't ask if update should (not) be installer (installer also asks) - If there's new update available, installer is executed, you will still be asked (just once, not twice)
- Script
new_file.py
modified- File opened
- Asks for a file name (empty &
Enter
-> Cancel) - New file path is currently opened file dirname + entered file name
- If file doesn't exist, new file is created and opened
- If file exists, file is opened
- Asks for a file name (empty &
- No file opened
- Same behavior as now
- New tab created and New File... button tap emulated
- File opened
- Installer
- Replaced
ModuleNotFoundError
(Python 3.6) withImportError
(Python 3.5)
- Replaced
-
Black Mamba 1.5.0 released:
- Documentation with new theme, rewritten, restructured
- GitHub release
1.5.0 (2018-01-11)
- Pass
-p no:cacheprovider
to fix operation not permitted for.cache
directory (run unit tests script) - Documentation cleanup and rewrite to Markdown, which is easily editable in Pythonista compared to reST
blackmamba.framework.security
introducedblackmamba.uikit.keyboard
- Camel case enum constant deprecated, will be removed in 2.0.0
- Use UPPER_CASED versions, camel case still exists as aliases
with bundle()
always unloadspkg_resources.*
causing issues- Launch Pythonista, run Black Mamba Analyze - works vs
- Launch Pythonista, run Pythonista unit tests, run Black Mamba Analyze - fails, because of
pkg_resources
-
@zrzka
Black Mamba short-cut can't work on Pythonista V3.4