v7.0.0: TIM-v3! #85
bczsalba
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release brings completely re-written TIM implementation to the library. It is significantly faster (~2x for markup without macros, >10x for markup with macros) than the previous version, and it's a lot easier to maintain and improve upon.
The previous hyperlink syntax (
[!link(https://example.org)]Example site[/!link]
) is now deprecated in favour of a new, much simpler one:There have also been a couple of changes to SVG exports to make them more accurate and aesthetically pleasing. We also support the
inverse
style for them as well!Changelog
Additions
ignore_any
parameter toWidget.execute_binding
(68866e6)Bugfixes
InputField
handling clicks & drags started outside of it (input_field.py: IndexError: list index out of range #72, [BUG] input_field.py: AssertionError: assert self._drag_start is not None #75)CTRL_C
not killing compositor thread by making it a daemon ([BUG] Ctrl-C doesn't stop threads #78)widget.positioned_line_buffer
being duplicated before and after vertical alignment ([BUG] InputField appears two cursors when typing #70)Refactors
pyproject.toml
-based builds (Fix testing workflow dependency issue #82)visibility=hidden
in SVG exports (d070724)Removals
get_applied_sequences
helper function (a7d41bd)API updates
get_applied_sequences
MarkupLanguage.prettify_markup
highlight_tim
!link(https://example.org)
~https://example.org
syntaxStyledText
StyledText
was meant to be barely detectable when used. It was returned in various places, but wanted to not be a thing you thought about often. Now it's on an opt-in basis, and it no longer tries to pass as astr
. It's immutable, and is only meant to be generated byMarkupLanguage.group_styles
orStyledText.group_styles
. You can also now create them from markup, not just ANSI-coded text.Showcase
tim-v3
went down to ~180-190 ns per parseThis discussion was created from the release v7.0.0: TIM-v3!.
Beta Was this translation helpful? Give feedback.
All reactions