Commit Graph

1632 Commits

Author SHA1 Message Date
Will McGugan
3c7190a616 Merge branch 'main' into footer-scroll 2024-12-18 13:34:28 +00:00
Will McGugan
8301c1c990 Merge branch 'main' into select-experiment 2024-12-18 13:33:34 +00:00
Will McGugan
0884282e4e Merge branch 'main' into selection-fix 2024-12-18 13:31:13 +00:00
Will McGugan
9016a98636 Merge branch 'main' into pilot-double-click-fix 2024-12-18 13:26:50 +00:00
Darren Burns
5a048b971b Update changelog 2024-12-17 16:14:43 +00:00
Darren Burns
700dd77c87 Update changelog 2024-12-17 16:13:57 +00:00
Darren Burns
21ea23cb03 Update CHANGELOG 2024-12-17 11:25:46 +00:00
Darren Burns
9b447b4254 Update CHANGELOG.md 2024-12-16 13:09:51 +00:00
Darren Burns
01befb2faf Update changelog 2024-12-12 13:28:50 +00:00
Darren Burns
b444c0f7c3 Changelog formatting 2024-12-12 11:41:07 +00:00
Darren Burns
eb4e192f18 Add missing changelog entry 2024-12-12 11:40:49 +00:00
Will McGugan
677b5beaf3 correction 2024-12-11 19:28:24 +00:00
Will McGugan
74e312e1a4 bump 2024-12-11 19:22:51 +00:00
Will McGugan
df2b72a62b Merge pull request #5370 from stefgmz/patch-1
Update CHANGELOG.md
2024-12-11 19:15:05 +00:00
Darren Burns
d46498d8dd Text area cut line (#5374)
* Updating the behaviour of cut in the TextArea to cut the whole line if there is no selection

* Update bindings in TextArea

* Tidying up, remove unused action, include cut/copy/paste in keybinds table

* Docs fix

* Changelog
2024-12-11 16:25:59 +00:00
Darren Burns
3c120c0ab0 Chaining click events (double/triple click etc) (#5369)
* Add comment about Click events

* Remove unused `App._hover_effects_timer`

* Add missing annotation

* Add missing type annotation

* Add `App._click_chain_timer`

* Add support for click chaining (double click, triple click, etc.)

* Create `App.CLICK_CHAIN_TIME_THRESHOLD` for controlling click chain timing

* Some tests for chained clicks

* Test changes [no ci]

* Have Pilot send only MouseUp and MouseDown, and let Textual generate clicks itself [no ci]

* Fix DataTable click tet [no ci]

* Rename Click.count -> Click.chain

* Test fixes

* Enhance raw_click function documentation in test_app.py to clarify its purpose and behavior

* Refactor imports in events.py: remove Self from typing and import from typing_extensions

* Remove unnecessary pause in test_datatable_click_cell_cursor

* Remove debug print statements and unnecessary pause in App class; add on_mount method to LazyApp for better lifecycle management in tests

* Remove debugging prints

* Add support for double and triple clicks in testing guide

* Add a note about double and triple clicks to the docs

* Turn off formatter for a section of code, and make it 3.8 compatible

* Update changelog [no ci]

* Simplify by removing an unecessary variable in `Pilot.click`

* Remove debugging code

* Add target-version py38 to ruff config in pyproject.toml, and remove formatter comments

* Document timing of click chains

* Pilot.double_click and Pilot.triple_click
2024-12-11 16:25:42 +00:00
Stefan S.
d614a9755f Update CHANGELOG.md 2024-12-10 16:07:18 +01:00
Will McGugan
52439f5cba snapshot 2024-12-10 11:52:06 +00:00
Will McGugan
b609303688 changelog 2024-12-08 16:03:17 +00:00
Will McGugan
2686bbabc7 fix dates in changelog 2024-12-08 14:41:40 +00:00
Will McGugan
97ae5ababf snapshot 2024-12-08 12:41:30 +00:00
Will McGugan
e723ca2746 changelog 2024-12-06 16:14:11 +00:00
Will McGugan
a0c166cc6d changelog 2024-12-06 16:05:03 +00:00
Will McGugan
5f5a38313a snapshots 2024-12-06 16:01:54 +00:00
Will McGugan
b7c0215b6c changelog 2024-12-06 13:18:23 +00:00
Will McGugan
49d97dcdd7 changelog 2024-12-06 13:06:07 +00:00
Will McGugan
146eab085d Merge pull request #5340 from Textualize/input-selection
Input selection
2024-12-06 10:39:06 +00:00
Darren Burns
9ff7cbcd92 Extra Input selection tests 2024-12-05 17:30:30 +00:00
Darren Burns
8e75f4890e Update CHANGELOG.md 2024-12-05 17:04:32 +00:00
Will McGugan
46f60cfb96 version bump 2024-12-05 15:01:26 +00:00
Will McGugan
8c9908b658 changelog 2024-12-05 15:00:30 +00:00
Will McGugan
82ed957419 ws 2024-12-05 11:33:19 +00:00
Will McGugan
1399c1eaaa bump 2024-12-05 10:14:20 +00:00
Darren Burns
ca496b4f56 tree-sitter upgrade (#5320)
* Using separate language packages and update lockfile

* Fixing some but not all languages

* Theme updates

* More theme fixes

* Improving the VS Code theme

* Fixes

* Fixing CSS rendering

* Fixing SQL and JavaScript highlight queries

* Update GitHub Actions to run syntax highlighting tests on 3.13, and avoid those tests on 3.8.

* Update CHANGELOG and remove `SyntaxAwareDocument.language_name` property.

* Remove unused Kotlin language syntax highlighting snapshot

* Update CHANGELOG to note that Kotlin syntax highlighting was removed

* Bail out of TextArea.language watcher early if tree-sitter is not installed

* Skip a test on 3.8 as it relates to syntax highlighting (tree-sitter) being available
2024-12-04 10:33:58 +00:00
Will McGugan
162a76a415 missing changelog entries 2024-12-03 16:21:21 +00:00
Will McGugan
2e46c55dfb changelog 2024-12-03 15:46:41 +00:00
Will McGugan
bb99d12ef0 added tab border style 2024-12-03 15:46:07 +00:00
Will McGugan
3488b2fb89 changelog 2024-12-01 12:50:23 +00:00
Will McGugan
a08fb41403 version bump 2024-11-30 17:26:48 +00:00
Will McGugan
fcba6fcb36 changelog 2024-11-29 10:20:05 +00:00
Will McGugan
bbacd93e84 bump 2024-11-29 10:14:38 +00:00
TomJGooding
8c8057b5b5 fix(listview): update index after items removed (#5135)
* fix(listview): update index after pop

* tests(listview): import future for type hints

* ensure pop error is original index rather than normalized

* fix(listview): update index after remove_items

* update changelog

* reinstate always_update to index reactive

* Revert "reinstate always_update to index reactive"

This reverts commit 68e205ee4f.

* handle unchanged index without always_update

* update changelog

* update changelog

* add docstrings

---------

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2024-11-28 16:00:52 +00:00
Darren Burns
79df474d14 Fix ListView styling (#5304)
* Quick fixes to list view styles

* Updating snapshots

* Update changelog
2024-11-28 14:40:17 +00:00
Will McGugan
317019725b snapshot 2024-11-27 17:31:20 +00:00
Will McGugan
8e4ba8409b Merge branch 'main' into command-markup 2024-11-27 15:05:40 +00:00
Will McGugan
923686dc0e changelog 2024-11-27 14:21:54 +00:00
Will McGugan
88313e3ece snapshot 2024-11-27 11:52:44 +00:00
Will McGugan
be1156aebd changelog 2024-11-27 10:25:07 +00:00
Will McGugan
61b54ed474 version bump 2024-11-24 20:28:26 +00:00
Will McGugan
2b9dee032e fix auto width select 2024-11-24 20:27:10 +00:00