20 Commits

Author SHA1 Message Date
Will McGugan
b173d9e266 absolutify 2024-09-12 15:29:16 +01:00
Will McGugan
5d95910292 added name to deliver 2024-08-29 14:37:00 +01:00
Darren Burns
40450c0a9a Reading 64k per chunk 2024-08-22 10:56:33 +01:00
Darren Burns
914b4631d8 isort minor version update, and add to development dependencies (#4727) 2024-07-11 14:32:01 +01:00
Darren Burns
fa4f75fd25 Text area undo redo (#4124)
* Initial undo related machinery added to TextArea

* Initial undo implementation

* Basic undo and redo

* Some more fleshing out of undo and redo

* Skeleton code for managing TextArea history

* Initial implementation of undo & redo checkpointing in TextArea

* Increase checkpoint characters

* Restoring the selection in the TextArea and then restoring it on undo

* Adding docstrings to undo_batch and redo_batch in the TextArea

* Batching edits of the same type

* Batching edits of the same type

* Keeping edits containing newlines in their own batch

* Checking for newline characters in insertion or replacement during undo checkpoint creation. Updating docstrings in history.py

* Fix mypy warning

* Performance improvement

* Add history checkpoint on cursor movement

* Fixing merge conflict in Edit class

* Fixing error in merge conflict resolution

* Remove unused test file

* Remove unused test file

* Initial testing of undo and redo

* Testing for undo redo

* Updating lockfile

* Add an extra test

* Fix: setting the `text` property programmatically should invalidate the edit history

* Improving docstrings

* Rename EditHistory.reset() to EditHistory.clear()

* Add docstring to an exception

* Add a pause after focus/blur in a test

* Forcing CI colour

* Update focus checkpoint test

* Try to force color in pytest by setting --color=yes in PYTEST_ADDOPTS in env var on Github Actions

* Add extra assertion in a test

* Toggle text_area has focus to trigger checkpoint in history

* Apply grammar/wording suggestions from code review

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

* Making max checkpoints configurable in TextArea history

* Improve a docstring

* Update changelog

* Spelling fixes

* More spelling fixes

* Americanize spelling of tab_behaviour (->tab_behavior)

* Update CHANGELOG regarding `tab_behaviour`->`tab_behavior`

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-02-14 13:11:14 +00:00
Will McGugan
0bfb6db34f more black 2024-01-29 17:15:41 +00:00
Darren Burns
d958f5bf77 Set pycln pre-commit hook language_version to 3.8 (#3640)
* Fix pycln pre-commit hook

* Use Python 3.11 for pycln
2023-11-06 11:58:27 +00:00
Rodrigo Girão Serrão
d9594f5adc Comment what the hooks do. 2023-10-26 12:20:19 +01:00
Rodrigo Girão Serrão
ec44d17ccc Remove trailing whitespace hook.
See https://github.com/Textualize/textual/pull/3595#discussion_r1372961156.
2023-10-26 11:55:22 +01:00
Rodrigo Girão Serrão
ecdf65385d Add more pre-commit hooks. 2023-10-26 11:28:26 +01:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Will McGugan
597a8923e9 run black on tests 2023-01-06 15:32:04 +00:00
Darren Burns
9e59060c29 Update pre-commit black 2022-12-08 13:47:43 +00:00
Darren Burns
a871e272b7 Update pre-commit-config to exclude snapshot tests 2022-09-20 14:58:32 +01:00
darrenburns
9eea01f5a1 Docs scrollbar gutter (#695)
* Add scrollbar-gutter docs

* Add scrollbar-gutter docs

* Add syntax and values section

* Rewording
2022-08-19 13:07:22 +01:00
Darren Burns
27999857d9 Upgrade black pre-commit hook version 2022-04-19 12:21:50 +01:00
Darren Burns
baba4ceed8 Stop black from formatting tests 2022-01-19 15:02:01 +00:00
Will McGugan
3ad4c4a50a added black to precommit 2021-09-11 14:52:45 +01:00
Will McGugan
79b425a26b allow large files 2021-08-07 08:17:34 +01:00
Will McGugan
ee927365f5 precommit config 2021-07-17 09:20:29 +01:00