| 1 | ## [7.7.2] - 2024-08-31 |
| 2 | |
| 3 | ### Additions |
| 4 | |
| 5 | - Stop allowing selection of closed Collapsible's items |
| 6 | - Clarify some documentation |
| 7 | |
| 8 | <!-- HATCH README END --> |
| 9 | |
| 10 | ## [7.7.1] - 2024-02-24 |
| 11 | |
| 12 | ### Additions |
| 13 | |
| 14 | - Add support for wide characters |
| 15 | |
| 16 | ### Bugfixes |
| 17 | |
| 18 | - Fix `inline` widget referring to `hover` mouse mode |
| 19 | |
| 20 | ## [7.7.0] - 2023-09-06 |
| 21 | |
| 22 | ### Additions |
| 23 | |
| 24 | - Add support for using carriage returns for button submissions |
| 25 | |
| 26 | ### Bugfixes: |
| 27 | |
| 28 | - Fix sluggish and unreliable text input caused by `getch_timeout`. |
| 29 | |
| 30 | ## [7.6.0] - 2023-07-25 |
| 31 | |
| 32 | ### Bugfixes |
| 33 | |
| 34 | - (temporarily) Fix hyperlinks breaking SVG exports |
| 35 | |
| 36 | ### Removals |
| 37 | |
| 38 | - Remove (undocumented) shortening behaviour from `Button` |
| 39 | |
| 40 | ## [7.5.0] - 2023-07-24 |
| 41 | |
| 42 | ### Additions |
| 43 | |
| 44 | - Add support for Windows' mouse events |
| 45 | - Add support for feeding input into `getch` |
| 46 | |
| 47 | ### Refactor |
| 48 | |
| 49 | - Allow immediately halting `WindowManager` programatically by not blocking on `getch` calls |
| 50 | |
| 51 | ### Bugfixes |
| 52 | |
| 53 | - Fix mouse event handlers not getting cleaned up properly |
| 54 | |
| 55 | ## [7.4.0] - 2023-05-24 |
| 56 | |
| 57 | ### Additions |
| 58 | |
| 59 | - Add meta tokens for saving & restoring styles |
| 60 | - Add support for alt/ctrl+backspace to remove whole words |
| 61 | - Add support for word move actions (Ctrl/Alt+<L>/<R>) & Home/End move |
| 62 | |
| 63 | ### Bugfixes |
| 64 | |
| 65 | - Fix multiline Label widget to incorrectly display message with hyperlink |
| 66 | - Fix input errors when alert is open (@qoft, #115) |
| 67 | |
| 68 | ## [7.3.0] - 2022-11-17 |
| 69 | |
| 70 | ### Additions |
| 71 | |
| 72 | - Add support for `SHIFT+` scroll events |
| 73 | - Add shade number indicators to `Palette.print` |
| 74 | - Add `inline` widget runner |
| 75 | |
| 76 | ### Bugfixes |
| 77 | |
| 78 | - Fix incorrect macro caching behaviour |
| 79 | - Fix various issues and misbehaviours with SVG exports |
| 80 | - Fix incorrect placement of `InputField` cursor |
| 81 | |
| 82 | ### Refactors |
| 83 | |
| 84 | - New `MkDocs` based documentation |
| 85 | - Change `terminal.py` -> `term.py` and `serializer.py` -> `serialization.py` to avoid naming conflicts |
| 86 | - Improve pseudo token behaviour by parsing it as a new token type |
| 87 | - Start generating semantic colors (success, warning, error) by blending with the primary |
| 88 | |
| 89 | ### Removals |
| 90 | |
| 91 | - Remove `is_bindable` widget attribute |
| 92 | |
| 93 | ## [7.2.0] - 2022-08-05 |
| 94 | |
| 95 | ### Additions |
| 96 | |
| 97 | - Add various color manipulation utilities |
| 98 | - Add `#auto` TIM pseudo-tag that always gives properly contrasted foreground text |
| 99 | - Add `palettes` module for framework-wide color generation & configuration |
| 100 | - Add `Synchronized Output` support |
| 101 | - Add `FancyReprWidget` |
| 102 | - Add `ptg --palette` flag |
| 103 | |
| 104 | ### Bugfixes |
| 105 | |
| 106 | - Fix markup aliases getting literalized during `parsing.eval_alias` & `MarkupLanguage.alias` |
| 107 | - Fix background colors creating vertical seams in SVG exports |
| 108 | - Fix colors getting localized pre-maturely |
| 109 | |
| 110 | ### Refactors |
| 111 | |
| 112 | - Make all the `ptg` program & all builting widgets use the global palette |
| 113 | - Prefix all ANSI colors with `ansi-` |
| 114 | |
| 115 | |
| 116 | ## [7.1.0] - 2022-07-27 |
| 117 | |
| 118 | ### Additions |
| 119 | |
| 120 | - Re-introduce `InputField` prompt attribute |
| 121 | |
| 122 | ### Bugfixes |
| 123 | |
| 124 | - Fix `ptg --version` |
| 125 | - Start wrapping `InputField` cursor when it goes outside of the given width |
| 126 | - Fix incorrect `KeyboardButton` label generation |
| 127 | |
| 128 | |
| 129 | ## [7.0.0] - 2022-07-24 |
| 130 | |
| 131 | ### Additions |
| 132 | |
| 133 | - Support CSS color names in TIM code |
| 134 | - Support terminal resize events on Windows (@Tired-Fox) |
| 135 | - Add `ignore_any` parameter to `Widget.execute_binding` |
| 136 | |
| 137 | ### Bugfixes |
| 138 | |
| 139 | - Fix `InputField` handling clicks & drags started outside of it |
| 140 | - Fix `CTRL_C` not killing compositor thread by making it a daemon |
| 141 | - Fix contents of `widget.positioned_line_buffer` being duplicated before and |
| 142 | after vertical alignment |
| 143 | |
| 144 | ### Refactors |
| 145 | |
| 146 | - **Rewrite of the TIM engine (now at version 3!)** |
| 147 | - **Move TIM highlighting from an instance method to a highlighter** |
| 148 | - Move to `pyproject.toml`-based builds |
| 149 | - Stop relying on `visibility=hidden` in SVG exports |
| 150 | |
| 151 | ### Removals |
| 152 | |
| 153 | - **Remove `get_applied_sequences` helper function** |
| 154 | |
| 155 | |
| 156 | ## [6.4.0] - 2022-06-14 |
| 157 | |
| 158 | ### Additions |
| 159 | |
| 160 | - Add hover highlighting for `Button` |
| 161 | |
| 162 | ### Bugfixes |
| 163 | |
| 164 | - Fix Splitters only sending mouse events on the first row of height |
| 165 | |
| 166 | ### Refactors |
| 167 | |
| 168 | - Implement semantic mouse handlers |
| 169 | - Improve mouse input cascade logic |
| 170 | |
| 171 | |
| 172 | ## [6.3.0] - 2022-06-05 |
| 173 | |
| 174 | ### Refactors |
| 175 | |
| 176 | - Refactor `InputField` |
| 177 | - Start caching `Token.sequence` to improve performance |
| 178 | - Start lazy-evaluating terminal resolution |
| 179 | |
| 180 | ### Bugfixes |
| 181 | |
| 182 | - Use `SVG` export prefix as the class of the `text` elements |
| 183 | - Fix `Inspector` not resizing to custom global terminals |
| 184 | |
| 185 | ### Additions |
| 186 | |
| 187 | - Add `break_line` `fill` argument |
| 188 | - Add `chrome` SVG argument |
| 189 | |
| 190 | |
| 191 | ## [6.2.2] - 2022-05-26 |
| 192 | |
| 193 | ### Bugfixes |
| 194 | |
| 195 | - Fix text being misaligned in both Firefox and Safari |
| 196 | |
| 197 | ### Refactors |
| 198 | |
| 199 | - Reduce redundancy in SVG export dimensions |
| 200 | |
| 201 | ## [6.2.1] - 2022-05-25 |
| 202 | |
| 203 | ### Bugfixes |
| 204 | |
| 205 | - Fix `\n` being escaped when highlighting python |
| 206 | |
| 207 | ### Refactors |
| 208 | |
| 209 | - Add `WindowManager.autorun` class attribute |
| 210 | |
| 211 | |
| 212 | ## [6.2.0] - 2022-05-24 |
| 213 | |
| 214 | ### Bugfixes |
| 215 | |
| 216 | - Fix `StandardColor` HEX and RGB being indexed from the wrong pool |
| 217 | - Fix overly greedy ~~yeeting~~ optimization of `ttype=POSITION` tokens |
| 218 | - Fix `ttype=POSITION` tokens acting unpredictably when multiple were present in a string |
| 219 | |
| 220 | ### Additions |
| 221 | |
| 222 | - Add `WindowManager.autorun` attribute |
| 223 | |
| 224 | ### Refactors |
| 225 | |
| 226 | - Implement usage of SVG tags when exporting |
| 227 | |
| 228 | |
| 229 | ## [6.1.0] - 2022-05-17 |
| 230 | |
| 231 | ### Additions |
| 232 | |
| 233 | - Introduce `__fancy_repr__` protocol |
| 234 | - Add `Color` format specifiers |
| 235 | - Add `Animation.pause` & `Animation.unpause` |
| 236 | |
| 237 | ### Bugfixes |
| 238 | |
| 239 | - Fix scrolled widgets not getting positioned correctly |
| 240 | - Fix an issue with 2-bit colors being interpreted as 8-bit ones |
| 241 | |
| 242 | ### Refactors |
| 243 | |
| 244 | - Improve `highlight_python` vs string |
| 245 | |
| 246 | |
| 247 | ## [6.0.0] - 2022-05-12 |
| 248 | |
| 249 | ### Removals |
| 250 | |
| 251 | - **Remove `Window.allow_fullscreen`, `Window.toggle_fullscreen`** |
| 252 | |
| 253 | ### Refactors |
| 254 | |
| 255 | - **Add new, customizable window blur styles** |
| 256 | - **Rename all builtin aliases to follow the `domain.item` naming scheme** |
| 257 | - Implement a new, much faster and `\n` supporting `break_line` function |
| 258 | - Improve animation stability |
| 259 | - Start caching `real_length`, `strip_markup` & `strip_ansi` results |
| 260 | - Refactor `StyledText` to only tokenize on-demand |
| 261 | - Rewrite the pattern used to match markup to improve how escapes are handled |
| 262 | - Introduce new, layout based CLI with an RGB colorpicker & inspector |
| 263 | |
| 264 | ### Additions |
| 265 | |
| 266 | - Add `Collapsible` widget (114da3a3d769d6abd72a8727ed036b1e947c0a23) |
| 267 | - Add new `highlighters` module with `RegexHighlighter` class |
| 268 | - Add `is_scroll, `is_primary`&`is_secondary` helpers to MouseEvent` |
| 269 | - Add `Terminal.no_record` context |
| 270 | - Add `WindowManager.alert` and `WindowManager.float` methods |
| 271 | - Add layout `assign` parameter to `WindowManager.add` |
| 272 | - Add window manager `Layout` class |
| 273 | |
| 274 | ### Bugfixes |
| 275 | |
| 276 | - Fix overly greedy optimization in `MarkupLanguage.parse` getting rid of important unsetters |
| 277 | - Fix `/` not being handled properly in various places |
| 278 | |
| 279 | |
| 280 | ## [5.0.0] - 2022-04-19 |
| 281 | |
| 282 | ### Refactors |
| 283 | |
| 284 | - **Refactor `window_manager.py` into 3 files under `window_manager` submodule** |
| 285 | - **Refactor the entire animation system** |
| 286 | - Move scrolling behaviour into new `ScrollableWidget` class |
| 287 | - Improve `Terminal` API |
| 288 | - Rename `widgets/layouts` → `widgets/containers` |
| 289 | |
| 290 | ### Additions |
| 291 | |
| 292 | - Add `StyleManager.__call__` method that sets the given \*\*kwargs keys and values |
| 293 | - Add (currently unused) `Widget.get_change` helper |
| 294 | |
| 295 | |
| 296 | ## [4.3.2] - 2022-04-09 |
| 297 | |
| 298 | ### Bugfixes |
| 299 | |
| 300 | - Improve how pixel size is received and fix process hanging when the terminal does not support it |
| 301 | - Fix stream truncation raising an error on Windows |
| 302 | |
| 303 | ### Additions |
| 304 | |
| 305 | - Add `getch_timeout` method |
| 306 | |
| 307 | |
| 308 | ## [4.3.1] - 2022-04-03 |
| 309 | |
| 310 | ### Bugfixes |
| 311 | |
| 312 | - Fix #45 by catching `errno.EINVAL` on stream truncation |
| 313 | - Fix `Container` first lines sometimes having wrong indentations in SVG exports |
| 314 | - Fix `Helpers` app not showing any bindings |
| 315 | |
| 316 | |
| 317 | ## [4.3.0] - 2022-04-02 |
| 318 | |
| 319 | ### Additions |
| 320 | |
| 321 | - Re-introduce `Helpers` ptg app |
| 322 | - Add F-keys to `input.keys` |
| 323 | - Add `terminal` `Recorder` class, ability to record anything written to the terminal using a context |
| 324 | - Add `Color.hex` property |
| 325 | - Add `Color` default fore & background setter and getters, using the terminal’s palette |
| 326 | - Add `LINK` and `POSITION` `TIM` token types |
| 327 | - Add `exporters` module to generate HTML pages and SVG screenshots from any terminal content |
| 328 | - Add `style` construction argument to `Label` |
| 329 | - Add `tim.get_styled_plains` method |
| 330 | |
| 331 | ### Refactors |
| 332 | |
| 333 | - Slightly optimize how `WindowManager.print` works |
| 334 | - Move regex-related utilities into `regex.py` |
| 335 | |
| 336 | |
| 337 | ## [4.2.1] - 2022-03-22 |
| 338 | |
| 339 | ### Refactors |
| 340 | |
| 341 | - Improve color degradation & caching |
| 342 | |
| 343 | |
| 344 | ## [4.2.0] - 2022-03-21 |
| 345 | |
| 346 | ### Additions |
| 347 | |
| 348 | - Add a graceful degradation `Color` layer |
| 349 | - Expose color support in `terminal` |
| 350 | - Add support for prettifying `UserDict` and `UserList` |
| 351 | - Add support for `NO_COLOR` using greyscale ramps |
| 352 | - Add `colors` module with color types for all terminal colors |
| 353 | |
| 354 | ### Refactors |
| 355 | |
| 356 | - Move `terminal` to its own module |
| 357 | |
| 358 | ### Bugfixes |
| 359 | |
| 360 | - Fix `[` sometimes being ommitted during `prettify_markup` |
| 361 | |
| 362 | |
| 363 | ## [4.1.0] - 2022-03-16 |
| 364 | |
| 365 | ### Refactors |
| 366 | |
| 367 | - Implement new `StyleManager` class & API |
| 368 | - Improve `Container.debug` to shorten itself & use `type(self)` |
| 369 | |
| 370 | ### Additions |
| 371 | |
| 372 | - Add value readout to `ptg -g` |
| 373 | |
| 374 | ### Bugfixes |
| 375 | |
| 376 | - Fix `ESC` not being outputted in `ptg -g` |
| 377 | |
| 378 | |
| 379 | ## [4.0.1] - 2022-03-12 |
| 380 | |
| 381 | ### Bugfixes |
| 382 | |
| 383 | - Fix broken macro call in `Markapp` |
| 384 | - Fix string literals not being displayed correctly in `inspect` |
| 385 | |
| 386 | ### Additions |
| 387 | |
| 388 | - Expose `inspect-identifier` markup alias |
| 389 | |
| 390 | |
| 391 | ## [4.0.0] - 2022-03-12 |
| 392 | |
| 393 | ### Additions |
| 394 | |
| 395 | - **Introduce new `Inspector` widget and `inspect` helper function** |
| 396 | - Add `Container.lazy_add` method to expose `_add_widget(..., run_get_lines=False)` |
| 397 | |
| 398 | ### Refactors |
| 399 | |
| 400 | - **Move `prettify` to new submodule `prettifiers` & improve its behaviour** |
| 401 | - **Move `is_interactive` under `terminal`** |
| 402 | - **Remove `MarkupLanguage context manager in favor of a `print` method`** |
| 403 | - **Refactor `MarkupLanguage.pprint`** |
| 404 | |
| 405 | ### Bugfixes |
| 406 | |
| 407 | - Fix support for aliasing to an existing tag |
| 408 | - Fix blocking `getch` call on Windows |
| 409 | |
| 410 | |
| 411 | <!-- HATCH URI DEFINITIONS START --> |
| 412 | |
| 413 | [7.7.2]: https://github.com/bczsalba/pytermgui/compare/v7.7.1...v7.7.2 |
| 414 | [7.7.1]: https://github.com/bczsalba/pytermgui/compare/v7.7.0...v7.7.1 |
| 415 | [7.7.0]: https://github.com/bczsalba/pytermgui/compare/v7.6.0...v7.7.0 |
| 416 | [7.6.0]: https://github.com/bczsalba/pytermgui/compare/v7.5.0...v7.6.0 |
| 417 | [7.5.0]: https://github.com/bczsalba/pytermgui/compare/v7.4.0...v7.5.0 |
| 418 | [7.4.0]: https://github.com/bczsalba/pytermgui/compare/v7.3.0...v7.4.0 |
| 419 | [7.3.0]: https://github.com/bczsalba/pytermgui/compare/v7.2.0...v7.3.0 |
| 420 | [7.2.0]: https://github.com/bczsalba/pytermgui/compare/v7.1.0...v7.2.0 |
| 421 | [7.1.0]: https://github.com/bczsalba/pytermgui/compare/v7.0.0...v7.1.0 |
| 422 | [7.0.0]: https://github.com/bczsalba/pytermgui/compare/v6.4.0...v7.0.0 |
| 423 | [6.4.0]: https://github.com/bczsalba/pytermgui/compare/v6.0.0...v6.4.0 |
| 424 | [6.3.0]: https://github.com/bczsalba/pytermgui/compare/v6.2.2...v6.3.0 |
| 425 | [6.2.2]: https://github.com/bczsalba/pytermgui/compare/v6.2.1...v6.2.2 |
| 426 | [6.2.1]: https://github.com/bczsalba/pytermgui/compare/v6.2.0...v6.2.1 |
| 427 | [6.2.0]: https://github.com/bczsalba/pytermgui/compare/v6.1.0...v6.2.0 |
| 428 | [6.1.0]: https://github.com/bczsalba/pytermgui/compare/v6.0.0...v6.1.0 |
| 429 | [6.0.0]: https://github.com/bczsalba/pytermgui/compare/v5.0.0...v6.0.0 |
| 430 | [5.0.0]: https://github.com/bczsalba/pytermgui/compare/v4.3.2...v5.0.0 |
| 431 | [4.3.2]: https://github.com/bczsalba/pytermgui/compare/v4.3.1...v4.3.2 |
| 432 | [4.3.1]: https://github.com/bczsalba/pytermgui/compare/v4.3.0...v4.3.1 |
| 433 | [4.3.0]: https://github.com/bczsalba/pytermgui/compare/v4.2.0...v4.3.0 |
| 434 | [4.2.1]: https://github.com/bczsalba/pytermgui/compare/v4.2.0...v4.2.1 |
| 435 | [4.2.0]: https://github.com/bczsalba/pytermgui/compare/v4.1.0...v4.2.0 |
| 436 | [4.1.0]: https://github.com/bczsalba/pytermgui/compare/v4.0.0...v4.1.0 |
| 437 | [4.0.1]: https://github.com/bczsalba/pytermgui/compare/v4.0.0...v4.0.1 |
| 438 | [4.0.0]: https://github.com/bczsalba/pytermgui/compare/v3.2.1...v4.0.0 |