Commit Graph

3896 Commits

Author SHA1 Message Date
Will McGugan 193c49247c changelog 2024-07-01 11:40:07 +01:00
Will McGugan 7a38204cb5 fix for panel title 2024-07-01 11:38:23 +01:00
Will McGugan 26479c17e9 fix changelog 2024-07-01 11:16:39 +01:00
Will McGugan 9f15260e0b
Merge pull request #2725 from jonathan-3play/fix_table_box_rendering_order
fix table rendering order of box elements
2024-07-01 11:15:35 +01:00
Will McGugan 2884da3821
Merge branch 'master' into fix_table_box_rendering_order 2024-07-01 11:13:10 +01:00
Will McGugan 577def22dd
Merge pull request #3399 from JPHutchins/feature/speedup-imports
feat: speedup import time using sys.platform
2024-07-01 10:37:35 +01:00
J.P. Hutchins f8b9ba143a feat: speedup import time using sys.platform 2024-06-29 17:05:26 -07:00
Will McGugan 349042fd89
Merge pull request #3351 from ofek/patch-1
Fix CI for macOS ARM
2024-05-01 15:24:50 +01:00
Ofek Lev a895220409 Update pythonpackage.yml 2024-05-01 10:11:41 -04:00
Ofek Lev 248ce14586
Apply suggestions from code review 2024-05-01 10:05:30 -04:00
Ofek Lev 4bb501176c
Update actions/setup-python action 2024-05-01 10:00:35 -04:00
Will McGugan 027a4727a5
Merge pull request #3350 from ofek/fix-test-warning
Fix warning in test suite
2024-05-01 14:57:08 +01:00
Ofek Lev eb357884ad Fix warning in test suite 2024-05-01 09:18:57 -04:00
Will McGugan 245649b3e2 punctuation 2024-04-30 09:47:29 +01:00
Will McGugan aebc1158fc faqs 2024-04-30 09:46:20 +01:00
Will McGugan c034c6869b
Merge pull request #3333 from abesto/patch-1
chore(changelog): fix release date for 13.7.1
2024-04-16 16:08:25 +01:00
Zoltán Nagy 52f3deb2c7
chore(changelog): fix release date for 13.7.1 2024-04-16 16:00:02 +01:00
Will McGugan 0d7e598fe7
Merge pull request #3276 from MichaelYochpaz/master
Fix `leading` Parameter Type In Docstring
2024-02-29 14:02:23 +00:00
Will McGugan 7f580bdcf0
Merge pull request #3293 from Textualize/bump1371
bump
2024-02-28 14:51:32 +00:00
Will McGugan 705bc464cb bump 2024-02-28 14:43:49 +00:00
Rodrigo Girão Serrão f4a7ed38eb
Merge pull request #3289 from Textualize/update-wcwidth
Update wcwidth and cell widths.
2024-02-27 13:32:41 +00:00
Rodrigo Girão Serrão 18ebb427bc
Update wcwidth and cell widths.
Bug https://github.com/Textualize/textual/issues/4073 showed that the version of wcwidth we are using incorrectly reports the soft hyphen (codepoint 173, 0xAD) has having length 1.
2024-02-26 18:33:05 +00:00
Michael Yochpaz 4933d3fa04 Fix `leading` docstring type 2024-02-08 14:56:41 +02:00
Rodrigo Girão Serrão 26152e9cc9
Export TextType into the docs. (#3257) 2024-01-31 13:05:27 +00:00
Will McGugan fd98182364
Merge pull request #3202 from Textualize/bump1370
new version
2023-11-15 16:31:56 +00:00
Will McGugan 1f04c9c2f7 new version 2023-11-15 16:26:08 +00:00
Darren Burns 59b1aca63b
Fix double-width characters disappearing when wrapping (#3180)
* Update docstring for `Text.wrap`s width parameter to indicate that it's referring to the number of *single-width* characters.

Also a small addition to the gitignore file.

* Working on double width wrapping fixes

* Chop cells to fit to width

* Fix folding when theres already text on line

* Update wrapping logic to fix issues with CJK charcters disappearing when the "fold" location sat *within* a double-width character. Ensure we retain browser logic of: if there is no space on the current line, move to a new line, and if theres not enough space on the entire new line, fold the text over multiple lines at appropriate locations.

* Remove old TODO comments

* Add regression test note

* Rename function to avoid breaking change

* Update CHANGELOG

* Remove old comment that is no longer relevant

* Cover off some wrapping edge cases

* Adding docstrings to tests explaining their purpose

* Renaming a local, function scope function alias

* Update rich/_wrap.py

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* PR feedback

* Testing wrapping with trailing and leading whitespace

* Improve docstring wording

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-11-14 10:03:54 +00:00
Darren Burns b32e42bda0
Fix issue with trailing whitespace (#3195)
* chore: upgrade all pre-commit hooks to latest version

* chore: add trailing-whitespace pre-commit hook

* refactor: Avoid trailing whitespace in box definitions

* docs: Add Robin Bowes as a contributor

---------

Co-authored-by: Robin Bowes <robin.bowes@yo61.com>
2023-11-08 11:43:38 +00:00
xymy 50d2a457c8
Fix typing for FloatPrompt (#3151)
Co-authored-by: Darren Burns <darrenb900@gmail.com>
2023-11-07 18:02:06 +00:00
Henry Mai 0177b03700
Black formatting (#3035)
* fix: minor black formatting

* style: update CONTRIBUTORS.md

* fix: more black formatting

Default black with no arguments provided

---------

Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2023-11-07 17:57:21 +00:00
plotski 7a168a27c5
[docs] Fix typos and other small stuff (#3094)
* [docs.text] Fix typo ("follow" -> "following")

* [docs.text] Fix ANSI/assemble examples

* [rich.pretty] Make `python -m rich.pretty` from the examples work

* [docs.progress] Fix typo ("updated" -> "setting")

* [docs.progress] Fix reference to cp_progress.py

* [docs.table] Fix typo ("show above" -> "shown above")

* [docs.table] Add reference to "Padding" for "padding" argument

---------

Co-authored-by: Anonymous <you@example.com>
2023-11-07 17:37:25 +00:00
Daniel Mills e76f3c3ea7
Update pre-commit hooks (#3113)
Fixes #3112
2023-11-07 17:07:05 +00:00
AaronBeaudoin 92e7164773
Fix #3104 (#3105)
* Fix #3104

* Fixing tests to account for new inline styles in HTML export

* Update changelog

* Add Aaron Beaudoin to contributors file.

---------

Co-authored-by: Darren Burns <darrenb900@gmail.com>
2023-11-07 17:04:31 +00:00
Will McGugan 9f620dc50c
Merge pull request #3191 from Textualize/assorted-docs-and-tidying
Various docstring fixes, removing unused variables
2023-11-07 16:22:13 +00:00
Ekin Aksu 238cf7bd98
Update README.tr.md (#3162)
Co-authored-by: Darren Burns <darrenb900@gmail.com>
2023-11-07 16:16:24 +00:00
Pedro Aaron c82777bd50
✏️ Fix micro-typo in README.es.md (#3145)
* ✏️ Fix micro-typo in` README.es.md`

* Update CONTRIBUTORS.md

---------

Co-authored-by: Pedro Luis Aaron Robles <Pedro.Luis.Aaron.Robles@kyndryl.com>
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2023-11-07 15:55:58 +00:00
Darren Burns b97abfcacc
Add missing Panel.fit parameters (#3192)
* Add parameters missing from Panel.fit

* Update CHANGELOG
2023-11-07 15:48:40 +00:00
Darren Burns cb211d5b89 Fix docstring typos 2023-11-07 13:45:51 +00:00
dependabot[bot] 21c0f25869
Bump actions/checkout from 2 to 4 (#3122)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 12:03:59 +00:00
Darren Burns 6fd3734f12 Improve wording in a docstring 2023-11-07 11:27:56 +00:00
Darren Burns b44fd1b337 Various docstring fixes, removing unused variables 2023-11-07 11:23:28 +00:00
Darren Burns c7d6215cfe
Fix a few typos in the repository that were resulting in the codespel… (#3181) 2023-11-01 17:04:37 +00:00
Will McGugan dfea426131
Merge pull request #3178 from DavdTheItGuy/patch-1
Corrected Typo in Portuguese README
2023-10-31 13:54:31 +00:00
David Samuel 712aae3cfe
Corrected Typo in Portuguese README
I fixed a minor typo in the Portuguese version of the README file. The word "Markdowm" should be "Markdown". This improves the clarity of the document. I am searching for another typo, but i can't find other typo, this is good 😃.  
I have a issue asking for fix the typo [here](https://github.com/Textualize/rich/issues/3172).
2023-10-31 10:42:39 -03:00
Bernhard Wagner 01d01ed5ee
Update progress.py: doc: Progress.default_columns -> Progress.get_def… (#3170)
* Update progress.py: doc: Progress.default_columns -> Progress.get_default_columns

Update progress.py: doc: 
Progress.default_columns -> Progress.get_default_columns

* Update CONTRIBUTORS.md

add bwagner (myself) to contributors
2023-10-27 12:59:40 +01:00
Will McGugan e9f75c9912 Merge branch 'py312' 2023-09-30 15:09:52 +01:00
Will McGugan 35b64f1237
Merge pull request #3139 from Textualize/py312
enable py312
2023-09-30 15:08:54 +01:00
Will McGugan c8ff546416 version bump 2023-09-30 14:45:34 +01:00
Will McGugan 3f8c4af451 tests for 3.12 2023-09-30 14:35:17 +01:00
Will McGugan ef90daf98f enable py312 2023-09-30 14:18:35 +01:00