Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Releases: zrzka/blackmamba

0.0.25

16 Sep 16:41
Compare
Choose a tag to compare
  • blackmamba.script introduced and it does contain following scripts
    • action_quickly.py, analyze.py, clear_annotations.py, close_all_tabs_except_current_one.py,
      drag_provider.py, jump_to_definition.py, jump_to_line.py, new_file.py, new_tab.py,
      open_quickly.py, outline_quickly.py, run_quickly.py, run_unit_tests.py, search_dash.py,
      toggle_comments.py
    • These scripts can be used in the wrench icon (action)
    • These scripts are binded to keyboard shortcuts, whenever you run it via wrench icon
      or via keyboard shortcut, same script is executed
    • It's still required to call blackmamba.main from within
      ~/Documents/site-packages-3/pythonista_startup.py file to properly configure it
      (even without external keyboard)
  • Drag Provider uses Pythonista title bar instead of custom title to allow users to close the
    the dialog without external keyboard
  • Unit tests (tester.py) moved from blackmamba.experimental to blackmamba
  • ide.run_script and ide.run_action has new args named delay, which defaults to None
  • Run Quickly & Action Quickly runs scripts with 1.0s delay and that's because
    both these actions are binded to scripts in the new script folder and if there's no
    delay, nothing happens if these scripts are Python 3 (basically it runs script from script,
    which doesn't ended yet)
  • Fixed #20 (Pythonista appex error)
    • Allow to run main
    • Do not check compatibility, updates
    • Do not register keyboard shortcuts
  • blackmamba.system.Pythonista decorator has new arg appex
    • Defaults to None
    • appex=True - run decorated function if it's running as application extension
    • appex=False - run decorated function if it's not running as application extension
    • appex=None - run in both case, just don't check
  • blackmamba.key_command.register_key_command is decorated with Pythonista(appex=False)
    to avoid shortcut registration if it's running as application extension
  • Page Up (Ctrl Up) and Page Down (Ctrl Down)
    • It jumps up / down by 40 lines by default
    • You can modify this value via general.page_line_count
    • See #395, it's recommended
      to hit Left / Right arrow key after page up / down to workaround iOS / Pythonista bug

0.0.24

15 Sep 08:27
Compare
Choose a tag to compare
  • 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

0.0.23

14 Sep 16:43
Compare
Choose a tag to compare
  • Jump to definition (Cmd Shift D)

0.0.22

14 Sep 10:42
Compare
Choose a tag to compare
  • 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 /

0.0.21

11 Sep 07:02
Compare
Choose a tag to compare
  • Config option to disable keyboard shortcuts registration
  • Code cleanup (circular deps, ...)
  • Fixed analyzer where ignore_code=None means real None
  • Please, check sample pythonista_startup.py, breaking changes, sry

v0.0.19

05 Sep 17:07
Compare
Choose a tag to compare
  • 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 only)

0.0.18

04 Sep 07:32
Compare
Choose a tag to compare
  • 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 decorator 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

0.0.16

29 Aug 12:38
Compare
Choose a tag to compare
  • 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 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)

0.0.15

28 Aug 20:43
Compare
Choose a tag to compare
  • 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

0.0.14

25 Aug 20:48
Compare
Choose a tag to compare
  • 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 # 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 (works, but sometimes, use at your
    own risk)