Commit Graph

1432 Commits

Author SHA1 Message Date
Will McGugan
5cff594512 tests 2024-03-10 15:16:38 +00:00
Will McGugan
ea8e75661a snapshot 2024-03-09 12:44:22 +00:00
Dave Pearson
535917e3b4 Correct the render return type hint in the docs example 2024-03-06 14:13:38 +00:00
TomJGooding
313b1694b9 docs(loading indicator): add loading reactive tip 2024-03-04 17:35:14 +00:00
Will McGugan
4a729c670e addendum 2024-03-03 13:32:04 +00:00
TomJGooding
1060790470 docs(devtools): add worker to log groups 2024-02-27 21:26:11 +00:00
Darren Burns
e22f081876 Animation docs fix (#4226)
* Docstring fixes

* Hardcoding the animation steps to fix animation docs example

* Calling ease correctly
2024-02-27 16:38:18 +00:00
Will McGugan
f8be478ccb Update docs/guide/reactivity.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-02-26 14:24:05 +00:00
Will McGugan
ba13c3c390 Update docs/guide/reactivity.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-02-26 14:23:55 +00:00
Will McGugan
14c5ac8dea redundant 2024-02-26 13:34:03 +00:00
Will McGugan
45e9cd6062 comma 2024-02-26 13:33:24 +00:00
Will McGugan
274c0f6c08 words 2024-02-25 18:30:42 +00:00
Will McGugan
3093d5297c recompose docs 2024-02-25 18:24:45 +00:00
Will McGugan
e701a8fad3 docs 2024-02-25 17:07:12 +00:00
TomJGooding
5aaa6b539c docs: fix tcss syntax highlighting (#4176)
Sorry but I spotted that the syntax highlighting was wrong in my last PR to
add tcss to the docs (#4171) where I had blindly copy pasted the code.

A quick grep found a few other places in the docs where the syntax
highlighting was wrong. This PR corrects the language to css.
2024-02-21 08:37:56 +00:00
Will McGugan
366b635528 index page 2024-02-20 21:52:44 +00:00
Will McGugan
ce36053352 docs and example 2024-02-20 21:38:47 +00:00
Will McGugan
3285097cea blog post words 2024-02-20 15:54:07 +00:00
Will McGugan
741a42ec9d Add dolphie 2024-02-20 14:46:37 +00:00
Will McGugan
c586b199cf remove elia 2024-02-20 14:28:45 +00:00
Will McGugan
266154d2ef screenshots 2024-02-20 14:24:22 +00:00
Will McGugan
82d3934005 typo 2024-02-20 13:14:23 +00:00
Will McGugan
20a8d5d508 docs 2024-02-20 11:56:52 +00:00
Rodrigo Girão Serrão
5cb2471bdb Merge branch 'main' into textual-animations 2024-02-19 13:40:00 +00:00
TomJGooding
c680bd7905 docs(events): add tcss to on decorator examples 2024-02-16 17:41:55 +00:00
Darren Burns
3abc8ee577 Text area fixes (#4157)
* 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`

* Various fixes

* Various fixes and improvements

* Updating tests to account for themes always being non-None

* Update CHANGELOG.

* Add TextArea.read_only to reactive attr table in TextArea docs

* Update TextArea docs regarding new features

* Cleaning up some typing issues

* Add actions for undo and redo

* Fix a typo

* Fix wording in docs/widgets/text_area.md

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

* Re-add return type hint

* PR feedback and fixing typos

* Mark breaking change in CHANGELOG

* Add undo/redo to docstring

* Add note on undo/redo bindings

---------

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-02-15 14:21:13 +00:00
Dave Pearson
7bd48fd440 Merge branch 'main' into command-palette-default-hits 2024-02-15 09:39:30 +00:00
Dave Pearson
3971449c16 Tidy up a suggested edit to the discover docs 2024-02-15 09:37:47 +00:00
Dave Pearson
efb8b48347 Tweak the layout of the discover description
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2024-02-15 09:28:45 +00: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
Dave Pearson
bd5fb23d82 Merge branch 'main' into command-palette-default-hits 2024-02-14 10:21:42 +00:00
Dave Pearson
66c19fab01 Make it clear we're talking about discovery hits 2024-02-14 10:20:46 +00:00
Dave Pearson
4f6f15a066 Add a note about best practice of the user of discover 2024-02-14 10:08:54 +00:00
Dave Pearson
cbb44bb50c Mention the discover method in the docs 2024-02-14 10:06:00 +00:00
Dave Pearson
a705c34965 Fix a case typo that already existed in the document 2024-02-14 10:05:38 +00:00
Will McGugan
b736c93a5e words 2024-02-13 16:24:16 +00:00
Will McGugan
6b14305837 typo 2024-02-11 15:46:15 +00:00
Will McGugan
00eb1dcac0 new blog 2024-02-11 14:19:48 +00:00
TomJGooding
e27c41c9ac fix(text area)!: stop escape shifting focus if default tab behaviour (#4125)
* fix(text area): stop escape shifting focus if default tab behaviour

* fix recent update to changelog

* address review feedback

* update changelog
2024-02-07 10:19:34 +00:00
Will McGugan
5d6c61afa0 Merge pull request #4075 from Textualize/cancelled-event
Data binding and more
2024-02-06 16:41:35 +00:00
Will McGugan
f39a7c96d3 Update docs/guide/reactivity.md
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2024-02-06 16:26:39 +00:00
Will McGugan
a817ecb999 docs 2024-02-06 14:58:07 +00:00
Will McGugan
34e7721552 examples 2024-02-06 14:35:25 +00:00
Will McGugan
f20515d4ae reactive docs 2024-02-06 14:30:27 +00:00
Will McGugan
fa8c0e8f95 fix refresh lines 2024-02-05 21:16:26 +00:00
TomJGooding
ca2c11bdb8 docs(text area): fix syntax highlighting in examples (#4099)
* docs(text area): fix syntax highlighting in examples

* revert text_area_extended.py

* fix class method

* fix extended text area example
2024-02-05 10:33:22 +00:00
Will McGugan
9ee308b801 merge changelog 2024-02-02 11:16:59 +00:00
Will McGugan
aeeb93d69c reactive init 2024-02-02 10:54:56 +00:00
TomJGooding
7c5f291704 docs(suspend): fix example highlighted lines 2024-02-01 17:06:58 +00:00
TomJGooding
a382bdc85e docs(text area): fix code editor link (#4093) 2024-02-01 13:57:57 +00:00