Skip to content

Releases: SublimeText/sublime_lib

v1.5.2

07 May 14:21
8c963d3

Choose a tag to compare

It looks like v1.5.1 mistakenly released from the wrong branch. This should fix it.

v1.5.1

06 May 15:11
239cb58

Choose a tag to compare

If another dependency provides an enum module, use our own anyway. (#168)

v1.5.0

10 Apr 14:40
3398369

Choose a tag to compare

Enhancements

  • ActivityIndicator no longer uses a thread. (#140)
  • Two SettingsDicts are equal if and only if they are the same type and refer to the same underling Settings object. (#129)
  • Add the Central European (Mac) encoding. (#138)

Bug Fixes

  • When an ActivityIndicator is garbage collected, it should stop running. (#153)
  • When modifying settings in a SettingsDict.subscribe() callback, don't call the subscription again if the subscribed settings haven't changed. (#152)
  • When force-closing views with close_view() or close_window(), revert the scratch state of any clones of those views. (#147)
  • A glob pattern like foo/**/* shouldn't match foo/. (#134)

Documentation Changes

  • Improved SettingsDict.subcribe documentation to clarify how it detects changes in the selected value.

Internal Changes

  • Update documentation for Sphinx 4. (#146)
  • Use sphinxcontrib.prettyspecialmethods instead of our original implementation. (#145)
  • Fix some typing issues for the latest MyPy. (#155)

v1.4.0

05 Jun 14:20

Choose a tag to compare

Enhancements

  • Add ActivityIndicator. (#119)
  • Add HoverLocation, QueryContextOperator, and CompletionOptions enums. (#111)

Bug Fixes

  • Fix bug in glob matching. (#117)
  • Add missing default value of -1 for the size argument of ViewStream.read().

Internal changes

  • Add comprehensive type declarations. (#116 )
  • If a pathlib is available, use that instead of the vendored version. (#113)
  • Improved performance of ResourcePath.from_file_path(). (#112)

v1.3.0

04 Feb 22:11

Choose a tag to compare

Enhancements

  • New Panel class for use with panels other than output panels, such as the console.
  • Several new methods of ResourcePath:
    • copy and copytree.
    • relative_to.
    • add_suffix and remove_suffix.
  • The flags argument of show_selection_panel accepts more values.

Bug Fixes

  • sublime_lib.encodings.to_sublime and from_sublime explicitly handle lookup errors.

Documentation Changes

  • Minor improvements to docs layout. (#102)

Internal Changes

  • Use MyPy type checking.

v1.2.2

04 Jan 18:00

Choose a tag to compare

Bug Fixes

  • All IntFlag descendants in sublime_lib.flags properly handle multiple arguments. (#94)

v1.2.1

01 Jan 16:41
ea87631

Choose a tag to compare

Bug Fixes

  • ResourcePath.from_file_path now handles paths within installed packages and default packages.

v1.2.0

17 Dec 15:35
2d4d432

Choose a tag to compare

Enhancements

  • Added ResourcePath, a pathlib-inspired representation of a Sublime Text resource path.
  • Added new_window and close_window functions.
  • Added show_selection_panel, a convenient wrapper for sublime.show_quick_panel.
  • ViewStream.seek now accepts any integer offset for any value of whence.
  • Added ViewStream.show_cursor and the ViewStream(follow_cursor) argument.
  • Added new_view(line_endings) argument and LineEnding enum.
  • All enums in sublime_lib can be constructed from a member name. Flag enums can be constructed using multiple arguments.

Bug Fixes

  • Significantly improved list_syntaxes and find_syntax_by_scope:
    • Correctly observe resource loading order.
    • Ignore tmLanguage and hidden-tmLanguage files that are “shadowed” by sublime-syntax files. (#73)
    • Support hidden-tmLanguage files. (#76)

Documentation Changes

  • New single-page design for API reference.
  • Many improvements to individual docstrings.

Internal Changes

  • 100% test coverage.
  • Simplified documentation build process.
  • Moved non-exported utility functionality to _util submodule.
  • Vendored pathlib.

v1.1.0

15 Nov 15:14

Choose a tag to compare

New feature:

  • SettingsDict.subscribe now returns a callback that, when invoked, clears the subscription. (#47)

Bug fix:

  • ViewStream.write should correctly avoid auto-indentation in all cases. (#48)

v1.0.0

03 Nov 18:56

Choose a tag to compare

Initial public release.